We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
round
1 parent 761ae74 commit f84737eCopy full SHA for f84737e
library/std/src/f64.rs
@@ -72,8 +72,13 @@ impl f64 {
72
pub const fn ceil(self) -> f64 {
73
core::f64::math::ceil(self)
74
}
75
+
76
+ /// Returns the nearest integer to `self`. If a value is half-way between two
77
+ /// integers, round away from `0.0`.
78
+ ///
79
/// This function always returns the precise result.
80
///
81
+ /// # Examples
82
83
/// ```
84
/// let f = 3.3_f64;
0 commit comments