float
float float
nanoseconds
pub fn nanoseconds(self): Duration
Create Duration from int nanoseconds (ns).
nanoseconds
pub fn nanoseconds(self): Duration
Create Duration from int nanoseconds (ns).
Create Duration from int nanoseconds (ns).
let d = 5.nanoseconds();
assert_eq d.nanoseconds(), 5;
microseconds
pub fn microseconds(self): Duration
Create Duration from int microseconds (us).
microseconds
pub fn microseconds(self): Duration
Create Duration from int microseconds (us).
Create Duration from int microseconds (us).
let d = 5.microseconds();
assert_eq d.microseconds(), 5;
milliseconds
pub fn milliseconds(self): Duration
Create Duration from int milliseconds (ms).
milliseconds
pub fn milliseconds(self): Duration
Create Duration from int milliseconds (ms).
Create Duration from int milliseconds (ms).
let d = 5.milliseconds();
assert_eq d.milliseconds(), 5;
Create Duration
from int days (d).
Create Duration
from int days (d).
Create Duration
from int days (d).
let d = 5.days();
assert_eq d.days(), 5.0;
Create Duration
from int hours (h).
Create Duration
from int hours (h).
Create Duration
from int hours (h).
let d = 5.hours();
assert_eq d.hours(), 5.0;
Create Duration
from int minutes (m).
Create Duration
from int minutes (m).
Create Duration
from int minutes (m).
let d = 5.minutes();
assert_eq d.seconds(), 300.0;
Create Duration
object from int seconds (s).
Create Duration
object from int seconds (s).
Create Duration
object from int seconds (s).
let d = 5.seconds();
assert_eq d.seconds(), 5.0;
Returns the nearest integer to a number. Round half-way cases away from 0.0.
Returns the nearest integer to a number. Round half-way cases away from 0.0.
Returns the nearest integer to a number. Round half-way cases away from 0.0.
See f64 - round in Rust doc.
Computes the tangent of a number (in radians).
Computes the tangent of a number (in radians).
Computes the tangent of a number (in radians).
See f64 - tan in Rust doc.
Returns the square root of a number.
Returns the square root of a number.
Returns the square root of a number.
See f64 - sqrt in Rust doc.
Computes the sine of a number (in radians).
Computes the sine of a number (in radians).
Computes the sine of a number (in radians).
See f64 - sin in Rust doc.
Returns the logarithm (base 10) of the number with respect to an arbitrary base.
Returns the logarithm (base 10) of the number with respect to an arbitrary base.
Returns the logarithm (base 10) of the number with respect to an arbitrary base.
See f64 - log10 in Rust doc.
Returns the natural logarithm of the number.
Returns the natural logarithm of the number.
Returns the natural logarithm of the number.
See f64 - ln in Rust doc.
Returns the integer part of self.
Returns the integer part of self.
Returns the integer part of self.
See f64 - trunc in Rust doc.
Returns the fractional part of self.
Returns the fractional part of self.
Returns the fractional part of self.
See f64 - fract in Rust doc.
Returns the largest integer less than or equal to self.
Returns the largest integer less than or equal to self.
Returns the largest integer less than or equal to self.
See f64 - floor in Rust doc.
Returns e^(self), (the exponential function).
Returns e^(self), (the exponential function).
Returns e^(self), (the exponential function).
See f64 - exp in Rust doc.
Returns the cosine of a number (in radians).
Returns the cosine of a number (in radians).
Returns the cosine of a number (in radians).
See f64 - cos in Rust doc.
Returns the smallest integer greater than or equal to self.
Returns the smallest integer greater than or equal to self.
Returns the smallest integer greater than or equal to self.
See f64 - ceil in Rust doc.
Computes the arctangent of a number. Return value is in radians in the range [-pi/2, pi/2];
Computes the arctangent of a number. Return value is in radians in the range [-pi/2, pi/2];
Computes the arctangent of a number. Return value is in radians in the range [-pi/2, pi/2];
See f64 - atan in Rust doc.
Computes the arcsine of a number. Return value is in radians in the range [-pi/2, pi/2] or NaN if the number is outside the range [-1, 1].
Computes the arcsine of a number. Return value is in radians in the range [-pi/2, pi/2] or NaN if the number is outside the range [-1, 1].
Computes the arcsine of a number. Return value is in radians in the range [-pi/2, pi/2] or NaN if the number is outside the range [-1, 1].
See f64 - asin in Rust doc.
Computes the arccosine of a number. Return value is in radians in the range [0, pi] or NaN if the number is outside the range [-1, 1].
Computes the arccosine of a number. Return value is in radians in the range [0, pi] or NaN if the number is outside the range [-1, 1].
Computes the arccosine of a number. Return value is in radians in the range [0, pi] or NaN if the number is outside the range [-1, 1].
See f64 - acos in Rust doc.