decimal() = {integer(), integer()}
old_decimal() = {0 | 1, non_neg_integer(), integer()}
opts() = #{precision => non_neg_integer(), rounding => rounding_algorithm()}
rounding_algorithm() = round_floor | round_ceiling | round_half_up | round_half_down | round_down
| abs/1 | |
| add/2 | |
| cmp/3 | |
| divide/3 | |
| fast_cmp/2 | |
| is_zero/1 | |
| minus/1 | |
| mult/2 | |
| reduce/1 | |
| round/3 | |
| sub/2 | |
| to_binary/1 | |
| to_binary/2 | |
| to_decimal/2 | |
| to_decimal/3 |
fast_cmp(X1, X2) -> any()
is_zero(X1::decimal()) -> boolean()
round(Rounding::rounding_algorithm(), Decimal::decimal(), Precision::non_neg_integer()) -> decimal()
to_binary(Decimal::decimal()) -> binary()
to_binary(Decimal::decimal(), Opts) -> binary()
to_decimal(Value, Opts) -> decimal()
Generated by EDoc