micropython/tests/float/float2int.py

11 wiersze
222 B
Python
Czysty Zwykły widok Historia

# This case occurs with time.time() values
print(int(1418774543.))
# TODO: General case with large exponent
#print(int(2.**100))
2014-12-31 00:20:57 +00:00
print("%d" % 1418774543.)
# TODO: General case with large exponent
#print("%d" % 2.**100)