Function addCommasToNumber

  • Convert the given number into a string, then add commas like a normal number would have.

    Parameters

    • input: string | number

    Returns string

    import {addCommasToNumber} from '@augment-vir/common';

    addCommasToNumber(1000123.456);
    // output is `'1,000,123.456'`