kuroko/test/testParseFloat.krk

19 lines
702 B
Python

print(float('123431236.632163e-3'))
print(float('123431236.632163e3'))
print(float('123431236.632163e30'))
print(float('123431236.632163e-30'))
print(float('-123431236.632163e-3'))
print(float('-123431236.632163e3'))
print(float('-123431236.632163e30'))
print(float('-123431236.632163e-30'))
print(float('2.1234567'))
print(float('0.1234567'))
print(float('0.001234567'))
print(float('0.00001234567'))
print(float('0.000976562500000000325260651745651330202235840260982513427734375'))
print(float('2.47032822920623272088284396434110686182e-324').__format__('.10000g'))
print(float('2.47032822920623272088284396434110686183e-324').__format__('.10000g'))
print(float('4.99e-324').__format__('.10000g'))