precise decimal digit without using round()
I am using python3 and django 1.11.5
Suppose a = 92.466578699
Expected result a = 92.46657
precise decimal digit without using round()
I am using python3 and django 1.11.5
Suppose a = 92.466578699
Expected result a = 92.46657
Try format
format(1.242563,".2f")
The output would be:
1.33243
Another
print (format(1.332432,".5f"))
1.33243