Hi, this is from the MSDN library that might help to clarify things:
When the fractional part is exactly 0.5, CInt and CLng always round it to
the nearest even number. For example, 0.5 rounds to 0 and 1.5 rounds to 2.
CInt and CLng differ from the Fix and Int functions, which truncate, rather
than round, the fractional part of a number. Also, Fix and Int always return
a value of the same type as is passed in.
"Steve Peterson" <sp*******@nospam.com> skrev i melding
news:ey**************@tk2msftngp13.phx.gbl...
Hello
I have a method that returns a decimal. I need to get the lowest integer
value from this decimal. For example from "4.9764" I need to get "4", or
from "13.134" I need "13". Is there a .Net method I can use to do this? If
not, maybe someone throw me a tidbit of code to so this..
TIA
Steve