CommaFormat

(System Library)

Description: Returns a number as text with embedded commas.
Returns: Text
Usage: Script or steady state.
Function Groups: Math - Generic Functions,  String and Buffer
Related to:

FormatNumber | Format |

Format: \System.CommaFormat(Value)
Parameters:  
Value
Required. Any integer expression giving the value to be formatted.
Comments:

This module is a member of the System Library, and must therefore be prefaced by \System. as shown in the "Format" section.

If your application predates version 11.2, use the backslash notation rather than dot: \System\

 

Note that the return value is a string, not a number. If used with an I/O and Calculations tag, ensure that the type is set to String, not Analog.

Example:

  System.CommaFormat(123456);

Returns  "123,456".