Take Command / TCC Help v. 13.03

@FORMATN

Hide Navigation Pane

@FORMATN

Previous topic Next topic No directory for this topic No expanding text in this topic  

@FORMATN

Previous topic Next topic Topic directory requires JavaScript JavaScript is required for expanding text JavaScript is required for the print function Mail us feedback on this topic!  

Comments (...)

@FORMATN[[-]width[.precision],value] : Formats a numeric value. 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.

 

If you don't specify a precision, @FORMATN will default to 16 decimal places, and may not round the number appropriately. (For example, @FORMATN[3,3.4] will produce "3.3999999999999999".)

 

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

Comments (...)