Loading
Visual Studio Code Based Modeler for Consumer Goods Cloud
Table of Contents
Select Filters

          No results
          No results
          Here are some search tips

          Check the spelling of your keywords.
          Use more general search terms.
          Select fewer filters to broaden your search.

          Search all of Salesforce Help
          roundDownToNearestMultipleOf(value, base)

          roundDownToNearestMultipleOf(value, base)

          This function returns a value that’s rounded to the next smaller multiple of base.

          Required Editions

          Available in Lightning Experience in Professional, Unlimited, and Enterprise Editions that have Consumer Goods Cloud enabled.

          Parameters

          • value: Decimal value to round.
          • base: Base integer.

          Returns

          • integer: Next smaller multiple of base.

          Sample Usage

          Utils.roundDownToNearestMultipleOf(12,5)

          Example Results of roundDownToNearestMultipleOf(value, base)

          Value Base Result
          12 5 10
          34 7 28
          18 9 18
           
          Loading
          Salesforce Help | Article