We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 7820c2f commit 7c925cfCopy full SHA for 7c925cf
src/libcore/f32.rs
@@ -59,13 +59,15 @@ pure fn gt(x: f32, y: f32) -> bool { ret x > y; }
59
// to the libmath macros in the rust runtime for performance
60
61
#[doc(
62
- brief = "Returns true if `x` is a positive number, including +0.0f320 and +Infinity."
+ brief = "Returns true if `x` is a positive number, including +0.0f320 \
63
+ and +Infinity."
64
)]
65
pure fn is_positive(x: f32) -> bool
66
{ ret x > 0.0f32 || (1.0f32/x) == infinity; }
67
68
- brief = "Returns true if `x` is a negative number, including -0.0f320 and -Infinity."
69
+ brief = "Returns true if `x` is a negative number, including -0.0f320 \
70
+ and -Infinity."
71
72
pure fn is_negative(x: f32) -> bool
73
{ ret x < 0.0f32 || (1.0f32/x) == neg_infinity; }
0 commit comments