Message
From
05/06/2008 03:39:58
 
General information
Fórum:
Visual FoxPro
Category:
Programação, sintaxe e comandos
Título:
Environment versions
Visual FoxPro:
VFP 9 SP2
OS:
Windows XP SP2
Miscellaneous
ID da thread:
01321604
ID da mensagem:
01321799
Views:
17
The problem happen because the value to be rounded was a calculated variable, and VFP has a bug since vfp3 I gess.
Example:
mrate = 86.173125
mhours = 24.0000
mpay = mhours * mrate
? mpay
? ROUND(mpay, 2)
One possible solution:
mrate = 86.173125
mhours = 24.0000
mpay = mhours * mrate
? mpay
? ROUND(val(transf(mpay, "99999.99999")), 2)
Thank's all for help
NPedro
Previous
Next
Responder
Mapa
View