Round

This function block is used for rounding numerical inputs to a specified number of decimal places. It provides a simple way to control the precision of numerical data in your workflows.

πŸ“₯ Inputs

Number The input number that you want to round.

πŸ“€ Outputs

Number The rounded output number based on the specified decimal places.

πŸ•ΉοΈ Controls

Decimals A text input where you can specify the number of decimal places to which the input number will be rounded. The default value is 2.

🎨 Features

Precision Control This function block allows users to specify the precision of numerical data by controlling the number of decimal places.

Simple Interface The control is straightforward, requiring just the number of decimals for rounding.

πŸ“ Usage Instructions

  1. Input Number: Connect a numerical output from another function block to the input.

  2. Set Decimals: Enter the desired number of decimal places in the Decimals field.

  3. Evaluate: Run the block to obtain the rounded result based on your input and specified precision.

πŸ“Š Evaluation

When executed, this function block takes the input number and outputs the rounded value according to the number of decimal places specified.

πŸ’‘ Tips and Tricks

Rounding to Whole Numbers

To round to whole numbers, set the Decimals to 0.

Using in Calculations

This block can be useful when following calculations require a certain level of precision, especially after operations like addition or division.

πŸ› οΈ Troubleshooting

Input Type Error

Ensure that the input is a valid number. If you receive an error, verify that the source block is sending a compatible data type.

Invalid Decimal Count

If you enter a negative number or a non-integer in the Decimals field, it will lead to unexpected results. Always ensure it is a non-negative integer.

Last updated