- Preparing search index...
- The search index is not available
docs.hg.fi
Methods
Static
convertCurrencyAmount
- convertCurrencyAmount(rates: CurrencyRates, amount: number, from: Currency, to: Currency, accuracy?: number): number
-
Parameters
-
-
amount: number
-
-
-
accuracy: number = 10
Returns number
Static
getSum
- getSum(price: number, amount: number, discountPercent?: number): number
-
Parameters
-
price: number
-
amount: number
-
Optional
discountPercent: number
Returns number
Static
getSumWithDiscount
- getSumWithDiscount(price: number, discountPercent: number): number
-
Parameters
-
price: number
-
discountPercent: number
Returns number
Static
getSumWithVat
- getSumWithVat(price: number, amount: number, vatPercent: number, discountPercent?: number): number
-
Parameters
-
price: number
-
amount: number
-
vatPercent: number
-
Optional
discountPercent: number
Returns number
Static
getVatlessSum
- getVatlessSum(sum: number, vatPercent: number, discountPercent?: number): number
-
Parameters
-
sum: number
-
vatPercent: number
-
Optional
discountPercent: number
Returns number
Static
roundByAccuracy
- roundByAccuracy(value: number, accuracy: number): number
-
Parameters
-
value: number
-
accuracy: number
Returns number
Static
stringifySum
- stringifySum(sum: number): string
-
Returns string