|
@@ -723,10 +723,10 @@ cast_to_float(Input) when is_binary(Input) ->
|
|
|
%% be compatible with releases prior to R16B
|
|
|
case erlang:function_exported(erlang, binary_to_float, 1) of
|
|
|
true ->
|
|
|
- try binary_to_float(Input)
|
|
|
+ try erlang:binary_to_float(Input)
|
|
|
catch
|
|
|
error:_Reason ->
|
|
|
- binary_to_integer(Input) + 0.0
|
|
|
+ erlang:binary_to_integer(Input) + 0.0
|
|
|
end;
|
|
|
false ->
|
|
|
cast_to_float(binary_to_list(Input))
|