Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Calculator ¶
TODO: Better name?!
func (Calculator) RoundToPrecision ¶
func (c Calculator) RoundToPrecision(amount alpacadecimal.Decimal) alpacadecimal.Decimal
type Code ¶
Currency represents a currency code. Three-letter [ISO4217](https://www.iso.org/iso-4217-currency-codes.html) currency code.
func (Code) Calculator ¶
func (c Code) Calculator() (Calculator, error)
Calculator provides a currency calculator object. This allows us to not to resolve def a lot of times, plus we can assume that def is always valid, thus we can avoid a lot of error handling.
Click to show internal directories.
Click to hide internal directories.