Hi John,
Check out the Mapbasic Help on FORMAT. If you wish to control the number of
decimal places use this not Str$(). Str$() rounds decimal numbers without
user control.
********************************************************************
Format$(-12345.6789, "#.###E+00") ' returns "-1.235e+04"
Format$( 0.054321, "#.###E+00") ' returns "5.432e-02"
Format$(-12345.6789, "#.###E-00") ' returns "-1.235e04"
Format$( 0.054321, "#.###E-00") ' returns "5.432e-02"
Format$(0.054321, "#.##%") ' returns "5.43%"
Format$(0.054321, "#.##\%") ' returns ".05%"
Format$(0.054321, "0.##\%") ' returns "0.05%"
********************************************************************
Thanks
Mark Crompton
-----Original Message-----
From: John Chioles [mailto:[EMAIL PROTECTED]]
Sent: Sunday, October 10, 1999 4:29 PM
To: 'MapInfo-L'
Subject: MB Q: str$(coords) vs. MIF conversion
Coordinates read from an object, stored in a float, and converted to string
with the function str$() return only 3 decimal places (.000) versus saving
the object as a table, and exporting it to a MIF, which returns precision to
6 places. Why is this, I would think a str$(fCoordX) would return the same
value.
Thanks.
John Chioles
Metricom - a world without wires
http://www.metricom.com <http://www.metricom.com/>
----------------------------------------------------------------------
To unsubscribe from this list, send e-mail to [EMAIL PROTECTED] and put
"unsubscribe MAPINFO-L" in the message body, or contact [EMAIL PROTECTED]
----------------------------------------------------------------------
To unsubscribe from this list, send e-mail to [EMAIL PROTECTED] and put
"unsubscribe MAPINFO-L" in the message body, or contact [EMAIL PROTECTED]