Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

1/0.2 vs Int(1/0.2)

Status
Not open for further replies.

AndyGroom

Programmer
May 23, 2001
972
GB
If you type
Code:
?1/0.2
into the Debug window you get 5, as expected. However if you do
Code:
?Int(1/0.2)
you get 4. Is there a way to pass 1 and 0.2 as variables so that the calculation gives 5 as expected?

- Andy
___________________________________________________________________
If a man speaks in a forest and there are no women around to hear him - will he still be wrong?
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top