round

This block is part of the math group and was last modified in core v10.4.28.

round v10.4.28

Returns the rounded value of the given number to specified precision (number of digits after the decimal point).

In pins 2
  • number required
    number

    Number to round to specified precision.

  • decimals
    number

    The number of decimal digits to round to.

    Default 0

Out pins 1
  • Number
    number

    The value rounded to the given precision.

A typical wiring for round: number feeds the number pin; the number out pin feeds if.

Studio canvas example for the round block: typical wiring for round.

Commonly used with

In production blueprints, this block is most often wired together with:

  • if: this block feeds into it.
  • create: feeds into this block. Creates a new function that can be executed using the given name.

Version history

Introduced in v10.4.28.


Back to math Return to the main group to view all sub-groups Back to number Return to the group to view all blocks within this group