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

◆ round() [2/4]

static decimal xtd::math::round ( decimal  value,
int32  decimals 
)
static

Rounds a decimal value to a specified number of fractional digits.

Parameters
valueA double-precision floating-point number to be rounded.
decimalsThe number of decimal places in the return value.
Returns
The number nearest to d that contains a number of fractional digits equal to decimals.