I am trying to output flouting point numbers from c# in the format used by VRML 2.0.
According to the vrml spec, this is
double-precision floating point number in IEEE 1xxx floating point format (see 2.[IEEE]).
[IEEE]: ISO/IEC 9899:1990 Programming languages -- C. http://www.iso.ch/isob/switch-engine-cate.pl?searchtype=refnumber&KEYWORDS=9899 (dead link)
- what is the correct string representation for this format? I am having trouble finding a reference. I found several explanations about the binary representation, but none about the string representation.
- how can I configure a NumberFormatInfo or a CultureInfo in accordance with this format?
clarification:
I want to produce a vrml file and I need to know how to assure
var myCultureInfo = CultureInfo.InvariantCulture;
myCultureInfo.NumberFormat = ....
StringWriter sw = new StringWriter(MyCultureInfo)
sw.Write(myDouble);
will result in a number that is 100% in accordance to the vrml spezification.