Current section

59 Versions

Jump to

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