Skip to content

Latest commit

 

History

History
40 lines (26 loc) · 1.54 KB

nifty-tou.tariffrate.md

File metadata and controls

40 lines (26 loc) · 1.54 KB

Home > nifty-tou > TariffRate

TariffRate class

An identifiable tariff rate.

Signature:

export default class TariffRate 

Remarks

The exponent property can be used to maintain precision in amount. For example an amount of 1.23 could be expressed as 123 with an exponent of -2.

Constructors

Constructor Modifiers Description
(constructor)(id, amount, exponent, description) Constructor.

Properties

Property Modifiers Type Description
amount readonly number Get the amount.
description readonly string | undefined Get the description.
exponent readonly number Get the exponent.
id readonly string Get the identifier.

Methods

Method Modifiers Description
parse(locale, id, amount, exponent, description) static Parse locale string values into a TariffRate instance.
toString() Get a string representation.