문제

I was trying to calculate cube root using VPL:
https://www.dropbox.com/s/vjng6fjf081ovkq/shot_140214_212725.png
What I'm doing is setting the value to the power of 1/3
https://www.dropbox.com/s/4f8eqep8rm3jpw0/shot_140214_212742.png
And as a result it gives me 1 all the time. Where the problem could be? Thank you.

도움이 되었습니까?

해결책

I bet 1/3 is getting truncated to 0, because the numerator and denominator are both integers. Any number raised to the 0 power gives 1.

If you use 1.0/3.0 instead, it might work.

라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top