Name

nfs()

Examples
a = 200
b = -40
c = 90
sa = nfs(a, 10)
print(sa)  # Prints " 0000000200"
sb = nfs(b, 5)
print(sb)  # Prints "-00040"
sc = nfs(c, 3)
print(sc)  # Prints " 090"

d = -200.94
e = 40.2
f = -9.012
sd = nfs(d, 10, 4)
print(sd)  # Prints "-0000000200.9400"
se = nfs(e, 5, 3)
print(se)  # Prints " 00040.200"
sf = nfs(f, 3, 5)
print(sf)  # Prints "-009.01200"
Description
Syntax
nfs(num, digits)
nfs(num, left, right)
Parameters
num
digits
left
right
Related nf()
nfp()
nfc()
Updated on Wed Jan 18 17:32:21 2017.
Creative Commons License