Tuesday, September 29, 2009

Converting floating point to string

This is not as simple as one could think:

Ref:
http://patrakov.blogspot.com/2009/03/dont-use-old-dtoac.html

http://en.wikipedia.org/wiki/Fixed-point_arithmetic

http://www.w3.org/TR/xmlschema-2/#float

Floating Point in XML:
http://discuss.joelonsoftware.com/default.asp?joel.3.653326.31

2 comments:

malat said...

The dtoa.c has been updated:

http://www.netlib.org/fp/dtoa.c

malat said...

Really the whole is issue is that DICOM only allows 16bytes while 18 would be required

http://groups.google.com/group/comp.lang.c++/browse_thread/thread/f329bdf5706ad534/edd68705269857

And esp.

"What Every Computer Scientist Should Know About Floating Point"

http://docs.sun.com/source/806-3568/ncg_goldberg.html