Files
Core2forAWS-MicroPython/tests/float/int_power.py
T

9 lines
94 B
Python
Raw Normal View History

2015-01-29 00:44:11 +00:00
# negative power should produce float
x = 2
print(x ** -2)
x = 3
x **= -2
print('%.5f' % x)