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.
1 parent 6c479c3 commit 8fe1087Copy full SHA for 8fe1087
src/libcore/ops/arith.rs
@@ -537,6 +537,10 @@ rem_impl_integer! { usize u8 u16 u32 u64 u128 isize i8 i16 i32 i64 i128 }
537
538
macro_rules! rem_impl_float {
539
($($t:ty)*) => ($(
540
+
541
+ /// The remainder from the division of two floats.
542
+ ///
543
+ /// The remainder has the same sign as the dividend. For example: `-5.0 % 2.0 = -1.0`.
544
#[stable(feature = "rust1", since = "1.0.0")]
545
impl Rem for $t {
546
type Output = $t;
0 commit comments