Functions9 public, 1 private
Wraps ColdFusion's lsCurrencyFormat() and changes the rounding mode from HALF-EVEN to HALF-UP. | |||
public | string | altCurrencyFormat | |
required | numeric | value | |
string | type | local | |
public | string | beautifyAmount | |
required | string | amount | |
public | string | currencyFormatHtml | |
required | numeric | number | |
"LOCAL", "INTERNATIONAL", "NONE" | type | LOCAL | |
any | locale | ||
public | numeric | getTaxFactor | |
required | string | group | |
required | string | country | |
date | date | now() | |
public | numeric | getTaxRate | |
required | string | group | |
required | string | country | |
date | date | now() | |
public | numeric | getTaxAmount | |
required | numeric | amount | |
required | string | group | |
required | string | country | |
date | date | now() | |
Rounds the provided numeric value to two decimal places with rounding mode HALF-EVEN. | |||
public | numeric | roundMoney | |
required | numeric | value | |
Rounds the provided amount based on human price perception. | |||
public | numeric | roundToSmartAmount | |
required | numeric | value | |
struct | OPTIONS | {} | |
option | numeric | roundTarget | 9 |
DOWN: go down to the closest target MIX: choose "DOWN" or "UP" based on the last digit being lte or gt [roundDownThreshold] UP: go up to the closest target | |||
option | DOWN, MIX, UP | roundMode | MIX |
round down when the last digit is less or equal to the specified value, only applied when [roundMode] is "MIX" | |||
option | numeric | roundDownThreshold | 4 |
allow price figures such as 1.23, 3.21 or 7.77 | |||
option | boolean | allowFigure | false |
Wraps the provided numeric value with stylable spans. | |||
public | string | styleAmount | |
required | numeric | amount | |
string | currencyFormat | LOCAL |