Where are GDScript math functions like cube root?

:information_source: Attention Topic was automatically imported from the old Question2Answer platform.
:bust_in_silhouette: Asked By 1shevelov

… or arbitrary exponentiation like x^1.1?

:bust_in_silhouette: Reply From: jgodfrey

Most of the core math functions are built directly into gdscript. For example, it provides a float pow ( float base, float exp ). That said, I’m not sure about cube root. The core functions are documented here:

Thanks! I looked there but missed pow method and was sure there should be more complicated functions somewhere else.

1shevelov | 2020-08-10 12:23

Additionally (and, maybe it’s obvious), certain classes of math are handled by individual objects (such as the Vector-based objects).

jgodfrey | 2020-08-10 13:57