- float f = *m_value.realPtr;
-/* Now the parser can cope with this.
- // Prevent printing in 'e' notation. Any better way?
- if (fabs(f) < 0.00001)
- f = 0.0;
-*/
- sprintf(wxBuffer, "%.6g", f);
- stream << wxBuffer;
+ double d = *m_value.realPtr;
+ tmp.Printf( _T("%.6g"), d );
+ stream.Append( tmp );