CInt

  • Thread starter Thread starter mo
  • Start date Start date
M

mo

Does anyone whether CInt rounds up/down or to the nearest integer? Also is
it possible to make round to the lowest integer value?

TIA
 
From the help file: "CInt and CLng always round it to the nearest even
number. For example, 0.5 rounds to 0, and 1.5 rounds to 2."

To round down to the lowest integer value you would use Fix or Int. The
difference between the two is in how they handle negatives. Check the Access
help for details.
 
Back
Top