Ask AI
Skip to main content

Round decimals down

Function: Round Decimals Down

This function helps you take any number that has decimal places and round it down to the nearest whole number. It's useful when you need to discard the fractional part of a number and only keep the integer part, always moving towards the smaller whole number. For example, if you have 3.75, it would become 3, and 10.1 would become 10.

Input

  • Number to round (DECIMAL_NUMBER)
    • Description: The number with decimal places that you want to round down.
    • Type: DOUBLE (A number with digits)
    • Required: Yes

Output

  • Result (RESULT)
    • Description: The name of the variable where the rounded-down whole number will be stored.
    • Type: NUMBER (An integer)
    • Default Value: RESULT

Execution Flow

Real-Life Examples

Here are some practical ways you can use the "Round Decimals Down" function:

  1. Calculating Whole Product Units from Raw Material:

    • Scenario: You have 15.8 meters of fabric and each product requires 1 full meter. You need to know how many complete products you can make.
    • Inputs:
      • Number to round: 15.8
    • Result: The variable RESULT will hold the value 15. This means you can make 15 full product units.
  2. Determining Full Years of Service:

    • Scenario: An employee has been with the company for 7.9 years. For a bonus calculation, you only consider full years of service.
    • Inputs:
      • Number to round: 7.9
    • Result: The variable RESULT will hold the value 7. The employee has 7 full years of service for the bonus.
  3. Allocating Budget in Complete Dollar Amounts:

    • Scenario: A budget formula calculates an allocation of $250.75 per team, but you can only distribute whole dollar amounts.
    • Inputs:
      • Number to round: 250.75
    • Result: The variable RESULT will hold the value 250. Each team will receive $250.