Home Manual Reference Source Repository
public class | source

Formatter

Direct Subclass:

DefaultFormatter

Formats currencies. This is an abstract class which formatters should extend from.

Method Summary

Public Methods
public

format(amount: type, currency: type): String

Format a currency.

Public Methods

public format(amount: type, currency: type): String source

Format a currency.

Params:

NameTypeAttributeDescription
amount type

Amount in cents.

currency type

Currency code to convert to.

Return:

String