Skip to main content

pow

Function pow 

pub fn pow(base: f64, exp: f64) -> f64
Expand description

Returns the result of base raised to the power of exp.

In GDScript, this is the equivalent of the ** operator.

pow(2, 5)   # Returns 32.0
pow(4, 1.5) # Returns 8.0