Skip to content

Commit f84737e

Browse files
committed
revert: undo accidental changes to round docs
1 parent 761ae74 commit f84737e

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

library/std/src/f64.rs

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -72,8 +72,13 @@ impl f64 {
7272
pub const fn ceil(self) -> f64 {
7373
core::f64::math::ceil(self)
7474
}
75+
76+
/// Returns the nearest integer to `self`. If a value is half-way between two
77+
/// integers, round away from `0.0`.
78+
///
7579
/// This function always returns the precise result.
7680
///
81+
/// # Examples
7782
///
7883
/// ```
7984
/// let f = 3.3_f64;

0 commit comments

Comments
 (0)