Scripting HelpersARCHIVE
A little piece of Roblox history. Preserved for everyone, one question at a time.Read about the archive →
✓ ANSWER ACCEPTED

Is it possible to do cube roots in a script?

I don't know the math syntax entirely and was just wondering if and how it would be possible. I have a guess but I want to be sure, can I just use something like:

local cubedValue = regularValue^(1/3)

?

1 answer

✓ Accepted answer

That's a cube root alright. Square root is ^1/2 while cube root is 1^3 so you're all good.

Do the math in a calculator or google cubed root of ___ if you want to check your work since you can always check your work with math.

1 comment

0

ok thank you. yeah i figured it would work but i wanted to be sure

This discussion is preserved as it was. New answers, comments, and votes are closed.