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 11f86f5 commit a77d012Copy full SHA for a77d012
double/mod_test.mbt
@@ -29,9 +29,12 @@ test "mod" {
29
inspect!(5.75 % 5.75, content="0")
30
inspect!(15.25 % 4.5, content="1.75")
31
inspect!(-8.4 % 3.2, content="-2")
32
+ inspect!(8.0 % 4.0, content="0")
33
+ inspect!(15.0 % 3.0, content="0")
34
// subnormal numbers
35
inspect!(5.0e-324 % 5.0e-324, content="0")
36
inspect!(0.5 % 1.5e-323, content="1e-323")
37
+ inspect!(4.0e-310 % 3.0e-310, content="1e-310")
38
// inf
39
inspect!(1.0 % @double.infinity, content="1")
40
assert_true!(@double.is_nan(@double.infinity % @double.infinity))
0 commit comments