GD> I've got the strangest thing happening in FP2.5 for Windows.
GD> Try this little program:
GD>
GD> amt = 8999.98
GD> ? transform(amt, '999,999.99')
GD>
GD> and I get this result:
GD>
GD> 9,000.00
GD>
GD> Can anyone confirm this? Is this a known bug? The transform()
GD> function started going strange about April 3rd of this year. Could
GD> this be a date- related thing?
JvK> Yes confirmed. (with fpw 2.6)
JvK> But you forgot some essential line:
JvK> set decimal to 0
JvK> apperently foxpro rounds amt to 'decimals' before executing the
JvK> transform function.
Actually, Windows was the culprit. Decimals were set to 0 in the
international section of the control panel. Fixed that, and the problem
went away.
Gerry Danen
gdanen@accessweb.com
CompuServe: 102736,3352
... What!? This isn't the Files section?
--- Maximus 3.01
---------------
* Origin: C+Net BBS. Programming & Networking. (1:342/1017)
|