Skip to content
Permalink
Browse files
Fix to_float(Int)
  • Loading branch information
iilyak committed Sep 9, 2015
1 parent 4f4be71 commit 6df0b68971356291f49d4be3f133097b77f603da
Showing 1 changed file with 1 addition and 1 deletion.
@@ -95,7 +95,7 @@ to_float(List) when is_list(List) ->
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)).

0 comments on commit 6df0b68

Please sign in to comment.