The following functions are useful for performing various rounding calculations.
Returns a number rounded to the nearest integer.
Syntax: | round(Number) |
Arguments: |
|
Examples: |
|
Rounds a number up to the next integer value regardless of its value.
Syntax: | ceil(Number) |
Arguments: |
|
Examples: |
|
Rounds a number down to the nearest integer regardless of its value.
Syntax: | floor(Number) |
Arguments: |
|
Examples: |
|
Returns the integer value of a number by truncating its fractional part.
Syntax: | trunc(Number) |
Arguments: |
|
Examples: |
|