Class fever.data.formatter.CurrencyFormatter

Description

Formats a valid number as a currency value.

As it extends NumberFormatter it can adjusts the decimal rounding and precision, the thousands separator.

it uses Localisation API to retreive default language specification like :

However you can override these properties as you want.

Field Index

alignSymbol, currencySymbol

Inherited from NumberFormatter

Inherited from Formatter

Method Index

new CurrencyFormatter()
format()

Inherited from Formatter

Constructor Detail

CurrencyFormatter

public function CurrencyFormatter()

Constructor.

Field Detail

alignSymbol

public alignSymbol:String
Symbol alignment ('left' or 'right').

currencySymbol

public currencySymbol:String
Currency symbol to use. ( default use Localisation API )

Method Detail

format

public function format(value:Number):String

Format passed-in value.

Parameters

valueNumber to format

Return

String

Overrides

format() in fever.data.formatter.NumberFormatter