Carrot reference
Functions
formatRound()
Converts a given value into a String, rounded to specific decimal place. Accepts Number, Money, or Percent datatypes.
formatRound(number[, places][, locale])
- number - the Number value to be rounded
- places - the number of places of the returned value
- locale -
formatRound(10.101010, 2) returns "10.10".
formatRound(base, 2) returns the value of base, rounded to two decimal places, as a String.
Updated 04 Oct 2023
Did this page help you?