3 lines
104 B
Text
3 lines
104 B
Text
n = 7.125
|
|
print rjust(string(n), 8, "0") # => 00007.125
|
|
print zfill(string(n), 8) # => 00007.125
|