4.6. Rounding and related functions #

4.6.1. ceil()
4.6.2. floor()
4.6.3. rint()
4.6.4. round()
4.6.5. trunc()

4.6.1. ceil() #

Rounds its operand to the next higher or equal integer. It takes one numeric operand.

4.6.2. floor() #

Rounds its operand to the next lower or equal integer. It takes one numeric operand.

4.6.3. rint() #

Rounds its operand using the report's rounding mode. It takes one numeric operand.

4.6.4. round() #

Rounds its operand to the nearest representable integer, rounding halfway cases away from zero. It takes one numeric operand.

4.6.5. trunc() #

Rounds its operand to the next representable integer toward zero. It takes one numeric operand.