How to determine the precision of double_precision_float ? | Sololearn: Learn to code for FREE!
Новый курс! Каждый программист должен знать генеративный ИИ!
Попробуйте бесплатный урок
0

How to determine the precision of double_precision_float ?

precision of float numbers

23rd Nov 2016, 5:39 PM
Hassnaa
1 ответ
+ 3
val = 1/60 print('{0:.2f}'.format(val)) print('{0:.5f}'.format(val)) play with ^ to change precision
23rd Nov 2016, 7:15 PM
Burey
Burey - avatar