Operations and constants for f64
NaN
digits
epsilon
infinity
mantissa_digits
max_10_exp
max_exp
max_value
min_10_exp
min_exp
min_value
neg_infinity
radix
of num::Num for f64
of num::Zero for f64
of num::One for f64
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
sqrt
sub
f64::consts
NaN
f64
digits
uint
epsilon
f64
infinity
f64
mantissa_digits
uint
max_10_exp
int
max_exp
int
max_value
f64
min_10_exp
int
min_exp
int
min_value
f64
neg_infinity
f64
radix
uint
num::Num
for f64
add
fn add(other: &f64) -> f64
sub
fn sub(other: &f64) -> f64
mul
fn mul(other: &f64) -> f64
div
fn div(other: &f64) -> f64
modulo
fn modulo(other: &f64) -> f64
neg
fn neg() -> f64
to_int
fn to_int() -> int
from_int
fn from_int(n: int) -> f64
num::Zero
for f64
zero
fn zero() -> f64
num::One
for f64
one
fn one() -> f64
add
fn add(x: f64, y: f64) -> f64
div
fn div(x: f64, y: f64) -> f64
eq
fn eq(x: f64, y: f64) -> bool
ge
fn ge(x: f64, y: f64) -> bool
gt
fn gt(x: f64, y: f64) -> bool
is_NaN
fn is_NaN(f: f64) -> bool
is_finite
fn is_finite(x: f64) -> bool
Returns true if x
is a finite number
is_infinite
fn is_infinite(x: f64) -> bool
Returns true if x
is an infinite number
is_negative
fn is_negative(x: f64) -> bool
Returns true if x
is a negative number, including -0.0f640 and -Infinity
is_nonnegative
fn is_nonnegative(x: f64) -> bool
Returns true if x
is a positive number, including +0.0f640 and +Infinity
This is the same as f64::positive
.
is_nonpositive
fn is_nonpositive(x: f64) -> bool
Returns true if x
is a negative number, including -0.0f640 and -Infinity
This is the same as f64::is_negative
.
is_positive
fn is_positive(x: f64) -> bool
Returns true if x
is a positive number, including +0.0f640 and +Infinity
is_zero
fn is_zero(x: f64) -> bool
Returns true if x
is a zero number (positive or negative zero)
le
fn le(x: f64, y: f64) -> bool
logarithm
fn logarithm(n: f64, b: f64) -> f64
lt
fn lt(x: f64, y: f64) -> bool
mul
fn mul(x: f64, y: f64) -> f64
ne
fn ne(x: f64, y: f64) -> bool
rem
fn rem(x: f64, y: f64) -> f64
signbit
fn signbit(x: f64) -> int
sqrt
fn sqrt(x: f64) -> f64
sub
fn sub(x: f64, y: f64) -> f64