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)
|