commit | 6df0b68971356291f49d4be3f133097b77f603da | [log] [tgz] |
---|---|---|
author | ILYA Khlopotov <iilyak@ca.ibm.com> | Wed Sep 09 08:21:09 2015 -0700 |
committer | ILYA Khlopotov <iilyak@ca.ibm.com> | Wed Sep 09 08:21:09 2015 -0700 |
tree | 817a6e3234e1cb7c1ff71cd785619a819f76c33f | |
parent | 4f4be7136e98b3db1489bbf39bafcae02d41692c [diff] |
Fix to_float(Int)
diff --git a/src/config.erl b/src/config.erl index 4537ad2..cf36d2b 100644 --- a/src/config.erl +++ b/src/config.erl
@@ -95,7 +95,7 @@ to_float(Float) when is_float(Float) -> Float; to_float(Int) when is_integer(Int) -> - list_to_float(integer_to_list(Int)); + list_to_float(integer_to_list(Int) ++ ".0"); to_float(Bin) when is_binary(Bin) -> list_to_float(binary_to_list(Bin)).