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 |
| ||||
Related |
nf() nfp() |
Updated on Tue Feb 27 14:07:12 2024.
If you see any errors or have comments, please let us know.
This work is licensed under a Creative Commons Attribution-NonCommercial-ShareAlike 4.0 International License