The round block basically rounds off any input value in order to improve the accuracy of the robot under certain conditions. This block has four available options, namely:
To Nearest
Round Up
Round Down
As you can see from the table above, “To Nearest” uses standard mathematical rounding rules to round a number, whereas round up always rounds the number to the following number and round down always rounds the number to the previous number.
Truncate mode allows you to reduce the number of decimals in a value without rounding it off.
Input value Decimal Places Output value
7.258 1 7.2
Comentários