Calculation Module
convenience functions and options to help with calculations
Types and nested modules
Type/Module | Description |
an amount specified either as a simple amount or as a percentage of another amount, optionally restricted to lower and/or upper limits |
|
functions for working with arrays |
|
utility functions for base currency unit values |
|
a fraction expressed as a numerator and denominator |
|
functions for working with maps |
|
utility functions for percent values |
|
the type of restriction placed on a possible value |
|
the type of rounding, specifying midpoint-rounding where necessary |
|
lower and upper bounds, as well as a step value, for tolerance when using the solver |
|
an amount specified either as a simple amount or as a percentage of another amount, optionally restricted to lower and/or upper limits |
|
the base unit of a currency (cent, penny, øre etc.) |
|
a holiday, i.e. a period when no interest and/or charges are accrued |
|
holds the result of a division, separated into quotient and remainder |
|
a fraction |
|
a percentage, e.g. 42%, as opposed to its decimal representation 0.42m |
|
the type of restriction placed on a possible value |
|
the type of rounding, specifying midpoint-rounding where necessary |
|
the result obtained from the array solver |
|
what range of values the solver should aim for |
|
lower and upper bounds, as well as a step value, for tolerance when using the solver |
Functions and values
Function or value |
Description
|
|
computes the quotient and remainder of two decimal values
|
Full Usage:
getAprOr defaultValue _arg1
Parameters:
decimal
_arg1 : Solution
Returns: decimal
|
|
Full Usage:
isTimedOut paymentTimeout evaluationDay paymentDay
Parameters:
int<MeasureProduct<DurationDay, MeasureOne>>
evaluationDay : int<MeasureProduct<OffsetDay, MeasureOne>>
paymentDay : int<MeasureProduct<OffsetDay, MeasureOne>>
Returns: bool
|
determines whether a pending payment has timed out
|
Full Usage:
libraryVersion
Returns: string
|
the version of the library
|
Full Usage:
roundMidpointTowardsZero m
Parameters:
decimal
Returns: int
|
rounds to the nearest number, and when a number is halfway between two others, it's rounded toward the nearest number that's towards 0L
|