Answers for "square number rust"

0

rust number squared

f32::powf(x, y); // x^y
f32::powf(2.0, 3.0) = 8.0;

u32::pow(x, y);
u32::pow(2, 3);

// For any datatype, f32, f64, u16, u32, u64 etc...
Posted by: Guest on April-06-2021

Browse Popular Code Answers by Language