Files
TencentOS-tiny/components/language/micropython/tests/float/int_power.py
2022-09-29 12:10:37 +08:00

9 lines
92 B
Python

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