Carrot reference
Functions
formatPercent()
Converts a given value of type Percent into a String.
formatPercent(percent[, format][, locale])
- percent - the Percent value to be converted to a String
- places - the number of places of the returned value
- locale -
formatPercent(.5) returns 50% as a String.
Updated 04 Oct 2023
Did this page help you?