Functions9 public, 0 private

Wraps ColdFusion's lsCurrencyFormat() and changes the rounding mode from HALF-EVEN to HALF-UP.
publicstringaltCurrencyFormat
requirednumericvalue
stringtypelocal
publicstringbeautifyAmount
requiredstringamount
publicstringcurrencyFormatHtml
requirednumericnumber
"LOCAL", "INTERNATIONAL", "NONE"typeLOCAL
anylocale
publicnumericgetTaxFactor
requiredstringgroup
requiredstringcountry
publicnumericgetTaxRate
requiredstringgroup
requiredstringcountry
publicnumericgetTaxAmount
requirednumericamount
requiredstringgroup
requiredstringcountry
Rounds the provided numeric value to two decimal places with rounding mode HALF-EVEN.
publicnumericroundMoney
requirednumericvalue
Rounds the provided amount based on human price perception.
publicnumericroundToSmartAmount
requirednumericvalue
structOPTIONS{}
optionbooleanallowFiguretrue
round down when the last digit is less or equal to the specified value
optionnumericroundDownThreshold4
optionDOWN, MIX, UProundModeMIX
Wraps the provided numeric value with stylable spans.
publicstringstyleAmount
requirednumericamount
stringcurrencyFormatLOCAL