Carrot reference
Functions
formatMoney()
converts a given value of type money into a string , while retaining the currency type in the string output optionally specify the format and locale of the returned value syntax formatmoney(money\[, format]\[, locale]) money the money value to be converted to a string format a formatting string that uses java's decimalformat to format the number for example, # 00 will format the returned value to two decimal places learn how to use decimalformat here , and view additional examples of decimalformat here locale an iso 639 1 language code, optionally followed by an iso 3166 1 country code, used to apply proper localization settings to the returned value for example, en us will format the returned value using us english settings, whereas en gb will format using british english and fr ca will format using french canadian settings if locale is not passed, it will use the org's default locale (typically en us ) return type string docid\ ujw2aqaktel5uuklup73s sample usage formatmoney(base) returns the value of base as a string , including the currency symbol supported data types input type return type logic money docid ks5d2xbfor9d8wfrivny string docid\ ujw2aqaktel5uuklup73s if a money value is passed, it's value will returned as a string, including the currency symbol unsupported data types null docid\ n9trvqonnbknql9drnbp6 unsupported data types return null