Round a given float value.
Round a given float value. Runden einer reellen Zahl. Choose between mathematical and system rounding :
| Value | mathematical | system |
| 14.499990 | 14.0000 | 14.0000 |
| 14.500000 | 14.0000 | 15.0000 |
| 14.500010 | 15.0000 | 15.0000 |
| 15.499990 | 15.0000 | 15.0000 |
| 15.500000 | 16.0000 | 15.0000 |
| 15.500010 | 16.0000 | 16.0000 |
| Summe | ||
| 90.000000 | 90.0000 | 91.0000 |
| Name | Type | Default | Description |
| Return | float | rounded value | |
| f | float | - | Value to round |
| precision | int | - | Number of digits after decimal point in the range of 0-5 |
| method | int | 0 | Method to round 0 : mathematical 1 : system |
Alphabetic index HTML hierarchy of classes or Java