Packages
cldr_utils
2.0.3
2.29.7
2.29.6
2.29.5
2.29.4
2.29.3
2.29.2
2.29.1
2.29.0
2.28.3
2.28.2
2.28.1
2.28.0
2.27.0
2.26.0
2.25.0
2.24.2
2.24.1
2.24.0
2.23.1
2.23.0
2.22.0
2.21.0
2.20.0
2.19.2
2.19.1
2.19.0
2.18.0
2.17.2
2.17.1
2.17.0
2.17.0-rc.0
2.16.0
2.15.1
2.15.0
2.14.1
2.14.0
2.13.3
retired
2.13.2
2.13.1
2.13.0
retired
2.12.0
2.11.0
2.10.0
2.9.1
2.9.0
retired
2.8.0
2.7.0
2.6.0
2.5.0
2.4.0
2.3.0
2.2.0
2.1.0
2.0.5
2.0.4
2.0.3
2.0.2
2.0.1
2.0.0
Map, Calendar, Digits, Decimal, HTTP, Macro, Math, and String helpers for ex_cldr.
Current section
59 Versions
Jump to
Current section
59 Versions
Compare versions
4
files changed
+15
additions
-7
deletions
| @@ -1,3 +1,11 @@ | |
| 1 | + ## Changelog for Cldr Utils version 2.0.3 |
| 2 | + |
| 3 | + This is the changelog for Cldr Utils v2.0.3 released on Decmber 8th, 2018. For older changelogs please consult the release tag on [GitHub](https://github.com/kipcole9/cldr_utils/tags) |
| 4 | + |
| 5 | + ### Bug Fixes |
| 6 | + |
| 7 | + * Fixed an error in `Cldr.Math.round/3` for `Decimal` numbers where the value being rounded is < 1 but greater than 0 whereby the sign was being returned as `true` instead of `1`. |
| 8 | + |
| 1 9 | ## Changelog for Cldr Utils version 2.0.2 |
| 2 10 | |
| 3 11 | This is the changelog for Cldr Utils v2.0.2 released on November 23rd, 2018. For older changelogs please consult the release tag on [GitHub](https://github.com/kipcole9/cldr_utils/tags) |
| @@ -14,10 +14,10 @@ | |
| 14 14 | {<<"licenses">>,[<<"Apache 2.0">>]}. |
| 15 15 | {<<"links">>, |
| 16 16 | [{<<"Changelog">>, |
| 17 | - <<"https://github.com/kipcole9/cldr_utils/blob/v2.0.2/CHANGELOG.md">>}, |
| 17 | + <<"https://github.com/kipcole9/cldr_utils/blob/v2.0.3/CHANGELOG.md">>}, |
| 18 18 | {<<"GitHub">>,<<"https://github.com/kipcole9/cldr_utils">>}, |
| 19 19 | {<<"Readme">>, |
| 20 | - <<"https://github.com/kipcole9/cldr_utils/blob/v2.0.2/README.md">>}]}. |
| 20 | + <<"https://github.com/kipcole9/cldr_utils/blob/v2.0.3/README.md">>}]}. |
| 21 21 | {<<"name">>,<<"cldr_utils">>}. |
| 22 22 | {<<"requirements">>, |
| 23 23 | [[{<<"app">>,<<"decimal">>}, |
| @@ -25,4 +25,4 @@ | |
| 25 25 | {<<"optional">>,false}, |
| 26 26 | {<<"repository">>,<<"hexpm">>}, |
| 27 27 | {<<"requirement">>,<<"~> 1.5">>}]]}. |
| 28 | - {<<"version">>,<<"2.0.2">>}. |
| 28 | + {<<"version">>,<<"2.0.3">>}. |
| @@ -767,8 +767,8 @@ defmodule Cldr.Math do | |
| 767 767 | def round_digits(digits_t, %{decimals: true}), do: digits_t |
| 768 768 | |
| 769 769 | # rounded away all the decimals... return 0 |
| 770 | - def round_digits(_, %{scientific: dp}) when dp <= 0, do: {[0], 1, true} |
| 771 | - def round_digits({_, place, _}, %{decimals: dp}) when dp + place <= 0, do: {[0], 1, true} |
| 770 | + def round_digits(_, %{scientific: dp}) when dp <= 0, do: {[0], 1, 1} |
| 771 | + def round_digits({_, place, _}, %{decimals: dp}) when dp + place <= 0, do: {[0], 1, 1} |
| 772 772 | |
| 773 773 | def round_digits(digits_t = {_, place, _}, options = %{decimals: dp}) do |
| 774 774 | {digits, place, sign} = do_round(digits_t, dp + place - 1, options) |
| @@ -1,7 +1,7 @@ | |
| 1 1 | defmodule CldrUtils.MixProject do |
| 2 2 | use Mix.Project |
| 3 3 | |
| 4 | - @version "2.0.2" |
| 4 | + @version "2.0.3" |
| 5 5 | |
| 6 6 | def project do |
| 7 7 | [ |
| @@ -39,7 +39,7 @@ defmodule CldrUtils.MixProject do | |
| 39 39 | defp deps do |
| 40 40 | [ |
| 41 41 | {:decimal, "~> 1.5"}, |
| 42 | - {:ex_doc, "~> 0.18", only: [:docs, :dev]} |
| 42 | + {:ex_doc, "~> 0.18", only: [:release, :dev]} |
| 43 43 | ] |
| 44 44 | end |