[Lazarus] JSON float saving scientific value
tcoq
tcoq at free.fr
Fri Nov 4 07:34:28 CET 2011
Hello silvio,
1.500000000E+000 is exactly 1.5, from a numerical point of view. It seems that you are getting what you need: storing a real.
Why would you want to have the "1.5" string? What is the issue?
Thierry
----- Mail Original -----
De: "silvioprog" <silvioprog at gmail.com>
À: "Lazarus mailing list" <lazarus at lists.lazarus.freepascal.org>
Envoyé: Vendredi 4 Novembre 2011 00h24:50 GMT +01:00 Amsterdam / Berlin / Berne / Rome / Stockholm / Vienne
Objet: [Lazarus] JSON float saving scientific value
Hi,
I'm trying to save a float value: 1.5. But some class is converting
the value to "1.50000000000000E+000" (please see:
http://imagebin.org/182341).
How to I save the value exactly as 1.5?
My project test in attached.
Thx.
--
Silvio Clécio
===============================================
Blog - <silvioprog.com.br>
Twitter - <twitter.com/silvioprog>
Facebook - <facebook.com/silvioprog>
LazSolutions - <code.google.com/p/lazsolutions>
Lazarus-BR - <groups.google.com.br/group/lazarus-br?hl=pt-BR>
===============================================
* Conheça nosso canal IRC sobre Lazarus: #lazarus-br *
===============================================
--
_______________________________________________
Lazarus mailing list
Lazarus at lists.lazarus.freepascal.org
http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus
More information about the Lazarus
mailing list