Template:RoundingOperationsTable

From QB64 Wiki
Jump to navigation Jump to search

The following table describes the rounding operations, where n is an operand:

Operation Description
INT(n) Returns the greatest integer less than n (rounds to negative infinity).
FIX(n) Returns the integer closest to zero from n (rounds to zero).
_ROUND(n) Returns the integer closest to n (rounds half away from zero).