[ << ] [ < ] [ Up ] [ > ] [ >> ]         [Top] [Contents] [Index] [ ? ]

6.6 $FNUMBER

Formats a number according to a particular set of formatting codes.

The first argument is the number to format.

The second argument is the series of formatting codes:

’P’ or ’p’

Will display negative numbers within parentheses instead of showing a minus sign.

, (comma)

Will add commas as thousands separators.

+

Will include a plus sign for positive numbers. Not compatible with ’P’ or ’p’.

-

Will remove the minus sign from negative numbers. Not compatible with ’p’ or ’P’.

’t’ or ’T’

Will place the sign after the number instead of before the number.

The optional third argument is a number indicating how many digits to which the fractional part of the number will be zero-padded.


This document was generated on April 11, 2025 using texi2html 5.0.