TIP: Click on subject to list as thread! ANSI
echo: foxpro
to: GERRY DANEN
from: JEROEN VAN KALKEN
date: 1997-04-23 10:05:00
subject: FoxPro 2.5 Win transform()

 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?
Yes confirmed. (with fpw 2.6)
But you forgot some essential line:
set decimal to 0
apperently foxpro rounds amt to 'decimals' before executing the transform 
function.
---------------
* Origin: Earth: mostly harmless (2:500/20.1974)

SOURCE: echomail via exec-pc

Email questions or comments to sysop@ipingthereforeiam.com
All parts of this website painstakingly hand-crafted in the U.S.A.!
IPTIA BBS/MUD/Terminal/Game Server List, © 2025 IPTIA Consulting™.