Severe IrrXml bug on parsing floats

Post your questions, suggestions and experiences regarding game design, integration of external libraries here. For irrEdit, irrXML and irrKlang, see the
ambiera forums
Post Reply
daschnei

Severe IrrXml bug on parsing floats

Post by daschnei »

Hi,

irrXml's float parser (getAttributeValueAsFloat) has a severe problem if there are too many digits for a single float in the XML file. It returns values that doesn't have anythig to do with the value in the XML.

Examle: <Cylinder radius="0.499999970198">

This was generated by a Python script used in Blender. Of course nobody needs so much precision, but it would be useful to be able to parse generated XML files without preprocessing them or changing the scripts that generate them.

Bye, David
niko
Site Admin
Posts: 1759
Joined: Fri Aug 22, 2003 4:44 am
Location: Vienna, Austria
Contact:

Post by niko »

Ah, thanks, didn't know this. Too bad, I just released a new version of irrXML, but I'll fix it in the next release :)
Post Reply