|
|
От: | PawnHunter | |
| Дата: | 21.09.04 15:42 | ||
| Оценка: | |||
Remarks
The behavior of this method follows IEEE Standard 754, section 4. This kind of rounding is sometimes called rounding to nearest, or banker's rounding.
Example
The following code example demonstrates rounding to nearest whole number value.
Math.Round(4.4); //Returns 4.0.
Math.Round(4.5); //Returns 4.0.
Math.Round(4.6); //Returns 5.0.