Skip to content

Numbers: (round function) ()

jolivepetrus edited this page Oct 29, 2017 · 4 revisions

This block is a Number block, an Operator block, and a Reporter block, that report the value of the expression resulting to applying the specified round function to the specified numeric operand.

This block can take the following round functions:

  • round: round the operand to the nearest integer.
  • round up: round the operand to the smallest integer larger than or equal to the operand.
  • round down: round the operand to the largest integer smaller than or equal to the operand.

Shape

Clone this wiki locally