Operations and constants for f32
NaN
infinity
neg_infinity
of num::Num for f32
of num::Zero for f32
of num::One for f32
add
div
eq
ge
gt
is_NaN
is_finite
- Returns true if x
is a finite numberis_infinite
- Returns true if x
is an infinite numberis_negative
- Returns true if x
is a negative number, including -0is_nonnegative
- Returns true if x
is a positive number, including +0is_nonpositive
- Returns true if x
is a negative number, including -0is_positive
- Returns true if x
is a positive number, including +0is_zero
- Returns true if x
is a zero number (positive or negative zero)le
logarithm
lt
mul
ne
rem
signbit
sub
f32::consts
NaN
f32
infinity
f32
neg_infinity
f32
num::Num
for f32
add
fn add(other: &f32) -> f32
sub
fn sub(other: &f32) -> f32
mul
fn mul(other: &f32) -> f32
div
fn div(other: &f32) -> f32
modulo
fn modulo(other: &f32) -> f32
neg
fn neg() -> f32
to_int
fn to_int() -> int
from_int
fn from_int(n: int) -> f32
num::Zero
for f32
zero
fn zero() -> f32
num::One
for f32
one
fn one() -> f32
add
fn add(x: f32, y: f32) -> f32
div
fn div(x: f32, y: f32) -> f32
eq
fn eq(x: f32, y: f32) -> bool
ge
fn ge(x: f32, y: f32) -> bool
gt
fn gt(x: f32, y: f32) -> bool
is_NaN
fn is_NaN(f: f32) -> bool
is_finite
fn is_finite(x: f32) -> bool
Returns true if x
is a finite number
is_infinite
fn is_infinite(x: f32) -> bool
Returns true if x
is an infinite number
is_negative
fn is_negative(x: f32) -> bool
Returns true if x
is a negative number, including -0.0f320 and -Infinity
is_nonnegative
fn is_nonnegative(x: f32) -> bool
Returns true if x
is a positive number, including +0.0f320 and +Infinity
This is the same as f32::is_positive
.)
is_nonpositive
fn is_nonpositive(x: f32) -> bool
Returns true if x
is a negative number, including -0.0f320 and -Infinity
This is the same as f32::is_negative
.
is_positive
fn is_positive(x: f32) -> bool
Returns true if x
is a positive number, including +0.0f320 and +Infinity
is_zero
fn is_zero(x: f32) -> bool
Returns true if x
is a zero number (positive or negative zero)
le
fn le(x: f32, y: f32) -> bool
logarithm
fn logarithm(n: f32, b: f32) -> f32
lt
fn lt(x: f32, y: f32) -> bool
mul
fn mul(x: f32, y: f32) -> f32
ne
fn ne(x: f32, y: f32) -> bool
rem
fn rem(x: f32, y: f32) -> f32
signbit
fn signbit(x: f32) -> int
sub
fn sub(x: f32, y: f32) -> f32