Interface NumericHelper

Index

Methods

Methods

public addThousandsSeparator(numericString: string): string

Parameters

  • numericString: string

Returns

string

public format(value: number, format: string): string

Parameters

  • value: number
  • format: string

Returns

string

public init(decimalSeparator: string, thousandsSeparator: string, currencySign: string, currencyMinorUnitPlaces: number): NumericHelper

Parameters

  • decimalSeparator: string
  • thousandsSeparator: string
  • currencySign: string
  • currencyMinorUnitPlaces: number

Returns

NumericHelper

public isCurrencyMajor(numericString: string): boolean

Parameters

  • numericString: string

Returns

boolean

public isCurrencyMajorMinor(numericString: string): boolean

Parameters

  • numericString: string

Returns

boolean

public isFloat(numericString: string): boolean

Parameters

  • numericString: string

Returns

boolean

public isInteger(numericString: string): boolean

Parameters

  • numericString: string

Returns

boolean

public parse(numericString: string): number

Parameters

  • numericString: string

Returns

number

public unformat(numericString: string): string

Parameters

  • numericString: string

Returns

string