Primitive Type f64
Expand description
A 64-bit floating-point type (specifically, the “binary64” type defined in IEEE 754-2008).
This type is very similar to f32
, but has increased precision by using twice as many
bits. Please see the documentation for f32
or Wikipedia on double-precision
values for more information.
Trait Implementations§
1.22.0 (const: unstable) · Source§impl AddAssign<&f64> for f64
impl AddAssign<&f64> for f64
Source§fn add_assign(&mut self, other: &f64)
fn add_assign(&mut self, other: &f64)
Performs the
+=
operation. Read more1.8.0 (const: unstable) · Source§impl AddAssign for f64
impl AddAssign for f64
Source§fn add_assign(&mut self, other: f64)
fn add_assign(&mut self, other: f64)
Performs the
+=
operation. Read more1.22.0 (const: unstable) · Source§impl DivAssign<&f64> for f64
impl DivAssign<&f64> for f64
Source§fn div_assign(&mut self, other: &f64)
fn div_assign(&mut self, other: &f64)
Performs the
/=
operation. Read more1.8.0 (const: unstable) · Source§impl DivAssign for f64
impl DivAssign for f64
Source§fn div_assign(&mut self, other: f64)
fn div_assign(&mut self, other: f64)
Performs the
/=
operation. Read more1.22.0 (const: unstable) · Source§impl MulAssign<&f64> for f64
impl MulAssign<&f64> for f64
Source§fn mul_assign(&mut self, other: &f64)
fn mul_assign(&mut self, other: &f64)
Performs the
*=
operation. Read more1.8.0 (const: unstable) · Source§impl MulAssign for f64
impl MulAssign for f64
Source§fn mul_assign(&mut self, other: f64)
fn mul_assign(&mut self, other: f64)
Performs the
*=
operation. Read more1.0.0 (const: unstable) · Source§impl PartialOrd for f64
impl PartialOrd for f64
1.0.0 (const: unstable) · Source§impl Rem for f64
The remainder from the division of two floats.
impl Rem for f64
The remainder from the division of two floats.
The remainder has the same sign as the dividend and is computed as:
x - (x / y).trunc() * y
.
§Examples
1.22.0 (const: unstable) · Source§impl RemAssign<&f64> for f64
impl RemAssign<&f64> for f64
Source§fn rem_assign(&mut self, other: &f64)
fn rem_assign(&mut self, other: &f64)
Performs the
%=
operation. Read more1.8.0 (const: unstable) · Source§impl RemAssign for f64
impl RemAssign for f64
Source§fn rem_assign(&mut self, other: f64)
fn rem_assign(&mut self, other: f64)
Performs the
%=
operation. Read more1.22.0 (const: unstable) · Source§impl SubAssign<&f64> for f64
impl SubAssign<&f64> for f64
Source§fn sub_assign(&mut self, other: &f64)
fn sub_assign(&mut self, other: &f64)
Performs the
-=
operation. Read more1.8.0 (const: unstable) · Source§impl SubAssign for f64
impl SubAssign for f64
Source§fn sub_assign(&mut self, other: f64)
fn sub_assign(&mut self, other: f64)
Performs the
-=
operation. Read more