mathRound

Rounds a number to the nearest integer. Takes value (number). Returns the rounded value.

Mathematics

Parameters & Returns

Parameters

value Double

Returns

Double

Quick Summary

Rounds a number to the nearest integer. Takes value (number). Returns the rounded value.

Technical Exegesis...

Returns the nearest integer to the input value, rounding halfway cases away from zero.

Examples: mathRound(3.5) returns 4.0, mathRound(3.4) returns 3.0, mathRound(-2.5) returns -3.0

Example

Example.bam
; No example implemented yet