Article # 404, added by Geoworks, historical record
| first |
previous |
index |
next |
last |
How to display floating point values.
Q. How does one display a floating point value in GOC? I tried sprintf( statusString, "f = %f", myFloat ), but it evaluates to statusString containing "f = X" (same with %F, %E, %e, %g). A. Use FloatFloatToAscii. The AnsiC lib does not depend on the math library and thus sprintf can't deal with GEOS floats.