circuitpython/tests/float/int_power.py
2021-03-15 19:27:36 +05:30

9 lines
94 B
Python

# negative power should produce float
x = 2
print(x ** -2)
x = 3
x **= -2
print("%.5f" % x)