Operations and constants for f32
NaN
infinity
neg_infinity
num of num::num for f32
abs
abs_sub
acos
add
asin
atan
atan2
cbrt
ceil
copysign
cos
cosh
div
eq
erf
erfc
exp
exp2
expm1
floor
fmax
fmin
frexp
gt
hypot
ilog_radix
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)ldexp
le
lgamma
ln
ln1p
log10
log2
log_radix
logarithm
lt
modf
mul
mul_add
ne
nextafter
pow
rem
round
signbit
sin
sinh
sqrt
sub
tan
tanh
tgamma
trunc
f32::consts
NaN
f32
infinity
f32
neg_infinity
f32
num of 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
abs
pure fn abs(n: c_float) -> c_float
abs_sub
pure fn abs_sub(a: c_float, b: c_float) -> c_float
acos
pure fn acos(n: c_float) -> c_float
add
pure fn add(x: f32, y: f32) -> f32
asin
pure fn asin(n: c_float) -> c_float
atan
pure fn atan(n: c_float) -> c_float
atan2
pure fn atan2(a: c_float, b: c_float) -> c_float
cbrt
pure fn cbrt(n: c_float) -> c_float
ceil
pure fn ceil(n: c_float) -> c_float
copysign
pure fn copysign(x: c_float, y: c_float) -> c_float
cos
pure fn cos(n: c_float) -> c_float
cosh
pure fn cosh(n: c_float) -> c_float
div
pure fn div(x: f32, y: f32) -> f32
eq
pure fn eq(x: f32, y: f32) -> bool
erf
pure fn erf(n: c_float) -> c_float
erfc
pure fn erfc(n: c_float) -> c_float
exp
pure fn exp(n: c_float) -> c_float
exp2
pure fn exp2(n: c_float) -> c_float
expm1
pure fn expm1(n: c_float) -> c_float
floor
pure fn floor(n: c_float) -> c_float
fmax
pure fn fmax(a: c_float, b: c_float) -> c_float
fmin
pure fn fmin(a: c_float, b: c_float) -> c_float
frexp
pure fn frexp(n: c_float, &value: c_int) -> c_float
gt
pure fn gt(x: f32, y: f32) -> bool
hypot
pure fn hypot(x: c_float, y: c_float) -> c_float
ilog_radix
pure fn ilog_radix(n: c_float) -> c_int
is_NaN
pure fn is_NaN(f: f32) -> bool
is_finite
pure fn is_finite(x: f32) -> bool
Returns true if x
is a finite number
is_infinite
pure fn is_infinite(x: f32) -> bool
Returns true if x
is an infinite number
is_negative
pure fn is_negative(x: f32) -> bool
Returns true if x
is a negative number, including -0.0f320 and -Infinity
is_nonnegative
pure 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
pure 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
pure fn is_positive(x: f32) -> bool
Returns true if x
is a positive number, including +0.0f320 and +Infinity
is_zero
pure fn is_zero(x: f32) -> bool
Returns true if x
is a zero number (positive or negative zero)
ldexp
pure fn ldexp(x: c_float, n: c_int) -> c_float
le
pure fn le(x: f32, y: f32) -> bool
lgamma
pure fn lgamma(n: c_float, &sign: c_int) -> c_float
ln
pure fn ln(n: c_float) -> c_float
ln1p
pure fn ln1p(n: c_float) -> c_float
log10
pure fn log10(n: c_float) -> c_float
log2
pure fn log2(n: c_float) -> c_float
log_radix
pure fn log_radix(n: c_float) -> c_float
logarithm
pure fn logarithm(n: f32, b: f32) -> f32
lt
pure fn lt(x: f32, y: f32) -> bool
modf
pure fn modf(n: c_float, &iptr: c_float) -> c_float
mul
pure fn mul(x: f32, y: f32) -> f32
mul_add
pure fn mul_add(a: c_float, b: c_float, c: c_float) -> c_float
ne
pure fn ne(x: f32, y: f32) -> bool
nextafter
pure fn nextafter(x: c_float, y: c_float) -> c_float
pow
pure fn pow(n: c_float, e: c_float) -> c_float
rem
pure fn rem(x: f32, y: f32) -> f32
round
pure fn round(n: c_float) -> c_float
signbit
pure fn signbit(x: f32) -> int
sin
pure fn sin(n: c_float) -> c_float
sinh
pure fn sinh(n: c_float) -> c_float
sqrt
pure fn sqrt(n: c_float) -> c_float
sub
pure fn sub(x: f32, y: f32) -> f32
tan
pure fn tan(n: c_float) -> c_float
tanh
pure fn tanh(n: c_float) -> c_float
tgamma
pure fn tgamma(n: c_float) -> c_float
trunc
pure fn trunc(n: c_float) -> c_float