Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR RUST

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...
 
PREVIOUS NEXT
Tagged: #rust #number #squared
ADD COMMENT
Topic
Name
4+4 =