operator: to-comma-number

    description:
        to-comma-number ket
        insert thousands commas into numbers 

    examples:
        to-comma-number |8825>
            |8,825>

        to-comma-number |population: 2300000>
            |population: 2,300,000>

        to-comma-number |3759.27>
            |3,759.27>

        to-comma-number |km: 22956.53>
            |km: 22,9356.53>

        -- replace is an approximate inverse for to-comma-number:
        replace[",", ""] to-comma-number |number: 12345678>
            |number: 12345678>

    see also:
        table, round, replace

Home