[Lazarus] JSON float saving scientific value

silvioprog silvioprog at gmail.com
Fri Nov 4 00:24:50 CET 2011


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 *
===============================================
-------------- next part --------------
A non-text attachment was scrubbed...
Name: json_test.zip
Type: application/zip
Size: 2305 bytes
Desc: not available
URL: <http://lists.lazarus-ide.org/pipermail/lazarus/attachments/20111103/2854e1fe/attachment-0002.zip>


More information about the Lazarus mailing list