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

◆ round() [1/4]

static decimal xtd::math::round ( decimal  value)
static

Rounds a double-precision floating-point value to the nearest integral value.

Parameters
valueA double-precision floating-point number to be rounded.
Returns
The integer nearest value. If the fractional component of a is halfway between two integers, one of which is even and the other odd, then the even number is returned. Note that this method returns a double instead of an integral type.