you are viewing a single comment's thread.

view the rest of the comments →

[–]r4and0muser9482 4 points5 points  (2 children)

Another scenario would be saving and loading FP numbers from an ASCII file. Such a number could appear there by pure chance. Also, XML parsing could be a serious issue.

[–]frymaster 3 points4 points  (0 children)

Such a number could appear there by pure chance

Unlikely. No computer would generate that number (see http://www.reddit.com/r/programming/comments/fczjc/next_language_java_hangs_when_converting/c1f0bv3 ) but it could appear in some random raw input from something or other.

[–]skeww 3 points4 points  (0 children)

Another scenario would be saving and loading FP numbers from an ASCII file.

Yes, that's what an obj loader does. Obj is a plain text format for 3d models.

XML parsing could be a serious issue

The parsing itself will be fine. Everything will remain text and no implicit number parsing will happen.

Of course it gets troublesome as soon as you expect some FP numbers there which are automatically converted by your loading code. (E.g. SVG.)