@FORMATNC[[-]width[.precision],value] : Formats a numeric value and automatically inserts the thousands separator. Width is a nonnegative integer specifying the minimum number of characters printed. If Width has a leading 0, the number will be left-padded with zeros. If the number of characters in the output value is less than the specified width, blanks are added to the left or the right of the values depending on whether the "-" flag (for left alignment) is specified, until the minimum width is reached. Precision specifies the number of digits after the decimal point. The value is rounded to the appropriate number of digits.

 

Examples:

 

echo %@formatnc[5.10,%@eval[2300*4.7]]

10,810.0000000000

 

echo %@formatnc[010.3,5]

000005.000

 

See also: @COMMA, @CONVERT, @FORMAT, @FORMATN.