03-21-2006, 01:04 AM
Quote:Why couldn't you just do this?
Code:Function Round( n As Single ) As Integer
Round = n\1
End Function
I've never tried your approach using integer division. The manual says that the variable is first "rounded" to an integer or long before the divide. That's great, but which of the 8 Microsoft defined rounding methods does it perform?
Give me a chance to test it on my DOS machine, and I'll get back to you.
*****