Ask AI
Skip to main content

Round off

Function: Round off

This action helps you simplify numbers by rounding them to the nearest whole number (integer). For example, if you have 3.7, it will become 4, and if you have 3.2, it will become 3. This is useful for calculations where you only need whole numbers, like counting items or displaying quantities without decimals.

Input

  • Number
    • Description: The decimal number you want to round to the nearest whole number.
    • Type: NUMBER

Output

  • The result variable name
    • Description: The whole number (integer) that results from rounding your input number. This is the final rounded value produced by the action.
    • Type: NUMBER

Execution Flow

Real-Life Examples

Here are some examples of how you can use the "Round off" action:

Example 1: Rounding a positive decimal for inventory count

Imagine you're tracking inventory, and a calculation gives you a partial quantity of an item. You need to know the whole number of items.

  • Inputs:
    • Number: 15.6
  • Result: The action outputs 16. You now know you have approximately 16 items.

Example 2: Rounding a negative value in financial adjustments

Suppose you're dealing with financial adjustments, and a calculation results in a negative decimal value that needs to be rounded to the nearest whole number for reporting.

  • Inputs:
    • Number: -7.3
  • Result: The action outputs -7. The adjustment is recorded as a whole number.

Example 3: Rounding a value ending in .5 for average scores

You're calculating average scores, and a student's average is 88.5. You want to round this to the nearest whole number using standard rounding rules (0.5 rounds up).

  • Inputs:
    • Number: 88.5
  • Result: The action outputs 89. The student's rounded average score is 89.