I am currently rounding numbers with floating decimals in python
. I thought that the numbers were being rounded UP to a whole integer but, I am suspicious...
What is the best way to ensure a rounding UP to the nearest whole integer?
Data for "snw" variable:
0
0
0
1.5
0
0.5
0
1
1
0
0
0
0
0
0
0
0
0
1
Python Code:
for i in range(len(snw)):
fmt=r"%5.0f" % (snw[i])