Name

nfc()

Examples
i = 500000
si = nfc(i)
print(si)# Prints "500,000"
f = 42525.34343
fi = nfc(f, 2)
print(fi)# Prints "42,525.34"
Description Utility function for formatting numbers into strings and placing appropriate commas to mark units of 1000. There are two versions: one for formatting ints, and one for formatting an array of ints. The value for the right parameter should always be a positive integer.

For a non-US locale, this will insert periods instead of commas, or whatever is apprioriate for that region.
Syntax
nfc(num)
nfc(num, right)
Parameters
numthe number(s) to format
rightint: number of digits to the right of the decimal point
Related nf()
nfp()

Updated on Tue Feb 27 14:07:12 2024.

If you see any errors or have comments, please let us know.