mirror of
https://github.com/W3SLAV/micropython.git
synced 2025-06-19 03:55:44 -04:00
9 lines
92 B
Python
9 lines
92 B
Python
# negative power should produce float
|
|
|
|
x = 2
|
|
print(x**-2)
|
|
|
|
x = 3
|
|
x **= -2
|
|
print("%.5f" % x)
|