Releases: alisinabh/Numero
Releases · alisinabh/Numero
0.4.0
v0.3.1
What's Changed
- Fix non English chars in normalize by @alisinabh in #2
Full Changelog: v0.3.0...v0.3.1
V0.3.0
In this version removing non digits in a string is much faster thanks to suggests from people in elixir forum.
And there are two slight changes in API
- Exceptions in remove non digits are now accepting char arrays instead of array of char arrays (which was a mistake of mine) e.g.: ~c[123] instead of
['1', '2', '3'] - function
is_digit_only?
is changes todigit_only?
(althoughis_digit_only?
exists just for a little backward compatibility.
0.1.2
normalize_as_number! function added.
this function (with !) will return the number on success and an exception on failure.
Example:
# with !
result = Numero.normalize_as_number!("123.45")
# result = 123.45
# without !
result = Numero.normalize_as_number("123.45")
# result = {:ok, 123.45}