Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Not so logical
Message
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Title:
Miscellaneous
Thread ID:
01422244
Message ID:
01422288
Views:
83
This message has been marked as a message which has helped to the initial question of the thread.
Hi Moises,

>total_min = INT(avulso_dataout - AVULSO_DATAIN) /60

I don't think you want to use the INT() function. INT() does cut of the decimal parts. If you have a number 1.9999999999999999999999999 the result of INT() is 1. I'd assume that in most cases the correct result would be 2, so ROUND(...,0) is the correct function. Please note that VFP will display 1.99999999999999999999999 as 2.00 in many cases.
--
Christof
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform