As stated in the comments you can use: floor and ceil fn main() { let num_32 = 3.14159_f32; println!("{}", num_32.floor()); // Output: 3 ...
確定! 回上一頁