With Rust 1.0.0, the following should be used: let upperLimit = (number as f64).sqrt() as i64 + 1;. See the docs for f64::sqrt .
確定! 回上一頁