f$Round (f$Runden)
f$Round (f$Runden)
Converts a floating value into an integer and rounds up commercially to the nearest integer while doing so.
To round up to a round 10 EUR, for example, the following formula can be used:
Price = f$Round( Price/10 ) * 10 | |||
Syntax: | RoundedNumber = f$Round( Number ) | ||
| Argument | Type | Meaning |
| Number | Decimal | Number to be rounded |
Result: | Integer | Rounded number | |
Example: | Price = f$Round( 33.59 ) → Price = 34 Price = f$Round( 33.59/10 ) * 10 → Price = 30 | ||
Related functions:
f$Integer | Convert a floating value to an integer |