Is there a method to do f32 exponentation in rust?
For example 5.24^2
fn main() {
let x = 5.2;
let n = 2;
let y = x.pow(n);
}
Is there a method to do f32 exponentation in rust?
For example 5.24^2
fn main() {
let x = 5.2;
let n = 2;
let y = x.pow(n);
}
This topic was automatically closed 90 days after the last reply. We invite you to open a new topic if you have further questions or comments.