Index
Modules:
money
,
money/codes
,
money/currencies
.
API symbols
`!=`:
currencies: proc `!=`[M: Money](x, y: M): bool
`$$`:
currencies: proc `$$`(x: int): Money
currencies: proc `$$`(x: string; currency: Alpha3 = Alpha3(moneyDefaultCurrency)): Money
`$`:
currencies: proc `$`[M: Money](m: M | ref M): string
currencies: proc `$`(symbol: Alpha3): string
`%`:
currencies: proc `%`(perc: float; x: Money): Money
currencies: proc `%`(perc: float; x: var Money)
`*=`:
currencies: proc `*=`[M: Money](x: var M; y: int)
currencies: proc `*=`[M: Money](x: var M; y: M)
`*`:
currencies: proc `*`[M: Money](x: M; y: BigInt): M
currencies: proc `*`[M: Money](x: M; y: float): M
currencies: proc `*`[M: Money](x: M; y: M): M
`+=`:
currencies: proc `+=`[M: Money](x: var M; y: M)
`+`:
currencies: proc `+`[M: Money](x, y: M): M
`-=`:
currencies: proc `-=`[M: Money](x: var M; y: M)
`-`:
currencies: proc `-`[M: Money](x, y: M): M
`.`:
currencies: proc `.`[A: int; C: Alpha3](unit: A; currency: C): Money
`/=`:
currencies: proc `/=`[M: Money](x: var M; y: int)
currencies: proc `/=`[M: Money](x: var M; y: M)
`/`:
currencies: proc `/`[M: Money](x: M; y: M): M
`<=`:
currencies: proc `<=`[M: Money](x, y: M): bool
`<`:
currencies: proc `<`[M: Money](x, y: M): bool
`==`:
currencies: proc `==`[M: Money](x, y: M): bool
`>=`:
currencies: proc `>=`[M: Money](x, y: M): bool
`>`:
currencies: proc `>`[M: Money](x, y: M): bool
`div`:
currencies: proc `div`[M: Money](x: M; y: int): M
currencies: proc `div`[M: Money](x: var M; y: varargs[M])
currencies: proc `div`(x: var Money; y: varargs[int])
abs:
currencies: proc abs[M: Money](x: M): M
add:
currencies: proc add[M: Money](x: var M; y: varargs[M])
currencies: proc add(cvrates: MoneyConversionRates; alpha: Alpha3; rates: JsonNode)
allocate:
currencies: proc allocate[M: Money](x: var M; targets: int): seq[M]
currencies: proc allocate(x: var Money; ratios: openArray[SomeNumber]): seq[Money]
Alpha3:
codes: enum Alpha3
amount:
currencies: proc amount(units: int; currency: Alpha3): Money
avg:
currencies: proc avg[M: Money](x: varargs[M]): M
coins:
currencies: proc coins(rep: uint = 1): int
contains:
currencies: proc contains(x: Money; currency: Alpha3): bool
convert:
currencies: proc convert(x: Money; y: Alpha3; cvrates: MoneyConversionRates): Money
coupon:
currencies: proc coupon[M: Money](amount: var M; discount: M)
currencies: proc coupon(amount: var Money; discount: float)
Currencies:
codes: const Currencies
Currency:
codes: tuple Currency
CurrencyRates:
currencies: type CurrencyRates
fmt:
currencies: proc fmt(x: string; currency: Alpha3 = Alpha3(moneyDefaultCurrency)): Money
formatMoney:
currencies: proc formatMoney(amount: string; currency: Alpha3): Money
getCurrency:
currencies: proc getCurrency(amount: Money): Currency
hundreds:
currencies: proc hundreds(rep: uint = 1): int
inc:
currencies: proc inc(x: var Money; y: int = 1)
incCent:
currencies: proc incCent(x: var Money; y: int = 1)
incNotes:
currencies: proc incNotes(x: var Money; y: int = 1)
isCent:
currencies: proc isCent(x: Money): bool
isCurrency:
currencies: proc isCurrency(x: Money; currency: Alpha3): bool
isNegative:
currencies: proc isNegative(x: Money): bool
isNotes:
currencies: proc isNotes(x: Money): bool
isZero:
currencies: proc isZero(x: Money): bool
max:
currencies: proc max[M: Money](x: varargs[M]): M
min:
currencies: proc min[M: Money](x: varargs[M]): M
Money:
currencies: object Money
MoneyConversionRates:
currencies: type MoneyConversionRates
moneyDefaultCurrency:
currencies: const moneyDefaultCurrency
moneyDefaultUnit:
currencies: const moneyDefaultUnit
MoneyError:
currencies: object MoneyError
MoneyFormattingError:
currencies: object MoneyFormattingError
MoneyUnit:
codes: enum MoneyUnit
moneyUnitCoins:
codes: MoneyUnit.moneyUnitCoins
moneyUnitNotes:
codes: MoneyUnit.moneyUnitNotes
multi:
currencies: proc multi[M: Money](x: var M; y: varargs[int])
newMoney:
currencies: proc newMoney(x: BigInt; currency: Currency = Currencies[moneyDefaultCurrency]): Money
currencies: proc newMoney(x: float; currency: Currency = Currencies[moneyDefaultCurrency]): Money
currencies: proc newMoney(x: int; currency: Currency = Currencies[moneyDefaultCurrency]): Money
currencies: proc newMoney(x: string = "0"; currency: Alpha3 = Alpha3(moneyDefaultCurrency)): Money
sub:
currencies: proc sub[M: Money](x: var M; y: varargs[M])
thousands:
currencies: proc thousands(rep: uint = 1): int
toMoney:
currencies: proc toMoney(x: float64; currency: Alpha3 = Alpha3(moneyDefaultCurrency)): Money
toSmallestCurrency:
currencies: proc toSmallestCurrency(x: Money): string
toStringMoney:
currencies: proc toStringMoney(x: Money): string