micropython: add micropython component
This commit is contained in:
8
components/language/micropython/tests/float/int_power.py
Normal file
8
components/language/micropython/tests/float/int_power.py
Normal file
@@ -0,0 +1,8 @@
|
||||
# negative power should produce float
|
||||
|
||||
x = 2
|
||||
print(x**-2)
|
||||
|
||||
x = 3
|
||||
x **= -2
|
||||
print("%.5f" % x)
|
Reference in New Issue
Block a user