formatRound()
Converts a given value into a String, rounded to specific decimal place. Accepts Number, Money, or Percent datatypes.
Syntax
formatRound(number[, places][, locale])
- number - the Number value to be rounded
- places - the number of places of the returned value
- locale -
- Return type: String
Sample usage
formatRound(10.101010, 2) returns "10.10".
formatRound(base, 2) returns the value of base, rounded to two decimal places, as a String.
Supported data types
Input type | Return type | Logic |
Number | String | The passed Number value is rounded to the specified decimal places, then converted to a String value. |
Unsupported data types | Null | Unsupported data types return Null. |

Updated 03 May 2023
Did this page help you?
Yes
No