Formerly Morgan-Stanley/morphir-elm. Search finds this package by either name.
Converts an Int to a Decimal
Converts a Float to a Decimal
Converts a String to a Maybe Decimal. The string shall be in the format [<sign>]<numbers>[.<numbers>][e<numbers>]
Converts an Int to a Decimal that represents n hundreds.
Converts an Int to a Decimal that represents n thousands
Converts an Int to a Decimal that represents n millions.
Converts an Int to a Decimal that represents n tenths.
Converts an Int to a Decimal that represents n hundredths.
Converts an Int to a Decimal that represents n thousandths.
Converts an Int to a Decimal that represents n millionth.
Converts an Int to a Decimal that represents n basis points (i.e. 1/10 of % or a ten-thousandth
Converts a Decimal to a String
Addition
Subtraction
Changes the sign of a Decimal
Multiplication
Divide two decimals
Divide two decimals providing a default for the cases the calculation fails, such as divide by zero or overflow/underflow.
Truncates the Decimal to the nearest integer with TowardsZero mode
round to the nearest integer.
Greater than
Greater than or equals
Equals
Not equals
Less than
Less than or equals
Compares two Decimals
Absolute value (sets the sign as positive)
Shift the decimal n digits to the left.
Shift the decimal n digits to the right.
The number 0
The number 1
The number -1
The Decimal data type