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

◆ truncate() [1/2]

static decimal xtd::math::truncate ( decimal  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
NaN NaN
NegativeInfinity NegativeInfinity
PositiveInfinity PositiveInfinity