Hi all!
How to calculator power in python script.
I tested with Text Editor but result is different.
Thank Advance!!
Hi all!
How to calculator power in python script.
I tested with Text Editor but result is different.
Thank Advance!!
i did here…
ahhh…
in IronPython it does not work!
i think you have to load a library…
KR
Andreas
Have a look at the following as it may help you Built-in Functions — Python 3.11.0 documentation
but it does not work with IronPython
import math
from math import *
a = 27
b=(1/3)
c=pow(a,b)
OUT = c
Thank you!
This work with me
from fractions import Fraction
a = 27.0**(Fraction('1/3'))
b = 9.0**(Fraction('1/2'))
c = (24/60.0)**(Fraction('1/3'))
OUT = a,b,c