Skip to content

Round command

Alvin Cheng edited this page Feb 12, 2023 · 1 revision

Description

This is the round command, this command will round the number in the first argument to the nearest whole number. In other words, it will turn a floating point number into a while integer number and return it to the variable in parameter 2. Here is a working example if you don't understand me.

Rounding numbers

Some numbers can have floating point places. To make it we can just round it by checking if a number's floating point is > .5 than down and vice versa. More in-depth information can be found here.

Example

$ROUNDED = (round <NUMBER>);

Clone this wiki locally