Module dec

Erlang decimal type with simple arithmetic.

Copyright © 2012 Herman Bosma

Authors: Herman Bosma (hermanbosma@gmail.com).

Description

Erlang decimal type with simple arithmetic. Conspicuouly absent is division; use mul instead.

Function Index

add/2
cmp/2
eq/2
gt/2
gte/2
is_zero/1
lt/2
lte/2
make/1
mul/2
neg/1
reduce/1
show/1
sub/2

Function Details

add/2

add(X, Y) -> any()

cmp/2

cmp(X, Y) -> any()

eq/2

eq(X, Y) -> any()

gt/2

gt(X, Y) -> any()

gte/2

gte(X, Y) -> any()

is_zero/1

is_zero(X) -> any()

lt/2

lt(X, Y) -> any()

lte/2

lte(X, Y) -> any()

make/1

make(N) -> any()

mul/2

mul(X, Y) -> any()

neg/1

neg(X) -> any()

reduce/1

reduce(X) -> any()

show/1

show(X) -> any()

sub/2

sub(X, Y) -> any()


Generated by EDoc