xtd 0.2.0
Loading...
Searching...
No Matches

◆ truncate() [2/2]

static double xtd::math::truncate ( double  value)
static

Calculates the integral part of a specified double-precision floating-point number.

Parameters
valueA number to truncate.
Returns
The integral part of d; that is, the number that remains after any fractional digits have been discarded, or one of the values listed in the following table.
value Return value
math::NaN math::NaN
math::negative_infinity math::negative_infinity
math::positive_infinity math::positive_infinity