Arithmetic blocks

Arithmetic blocks

Round block

The Round block is an arithmentic block that rounds a numeric input (num) based on the increment input (inc) and rounding method configured in the Mode block property; it then outputs the rounded value.

Example Two Round blocks configured with AlwaysDown and Normal modes round the input number to the nearest tenth.

Block properties

To customize the block, update the Block Properties.

Property Description
Name Name to display beneath the block on the ADL canvas

Rules to use for rounding the input value:

  • Normal: Use standard rounding rules (n < 5, round down; n >= 5, round up)
  • Always Down: Round to the lower increment
  • Always Up: Round to the upper increment