Hi

In erlsql.erl:

encode(Val, false) when is_integer(Val) ->
    integer_to_list(Val);
encode(Val, false) when is_float(Val) ->
    [Res] = io_lib:format("~w", [Val]),
    Res;

Is there still a reason to not to use more  accurate float_to_list?

Eshell V5.5.5  (abort with ^G)
1> A=0.0000012345678.
1.23457e-6
2> io_lib:fwrite("~w", [A]).
[["1.23457",101,45,54]]
3> float_to_list(A).
"1.23456780000000008931e-06"
4>

Jouni
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"erlyweb" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/erlyweb?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to