moneyex v0.1.0 Money
Convert floats, strings or integers in to integer representation of a number with decimals.
Summary
Functions
Add two values and return an integer representation of a float
Convert a value in to an integer representation of a float
Divide two values and return an integer representation of a float
Multiply two values and return an integer representation of a float
Subtract two values and return an integer representation of a float
Convert to float an integer representation of a float
Convert to float string an integer representation of a float
Functions
Add two values and return an integer representation of a float
convert_to_integer(float) :: integer
convert_to_integer(integer | String.t) :: integer
Convert a value in to an integer representation of a float.
Example:
10 -> 1000
“10.00” -> 1000
10.00 -> 1000
If we are using a scale of four:
10.0000 -> 100000
Convert to float string an integer representation of a float