Cint method return value
-
cint(2.5) = 2 but cint(3.5) = 4 i check it for even odd values and i found that for only odd it give next number. why this happen? :confused:
-
cint(2.5) = 2 but cint(3.5) = 4 i check it for even odd values and i found that for only odd it give next number. why this happen? :confused:
There are two different rounding methods: :: Rounding away from zero :: Rounding to nearest even The method you are using has been implemented to use the later one. The Math.Round method has overloads that let you decide the rounding method. --- b { font-weight: normal; }
-
There are two different rounding methods: :: Rounding away from zero :: Rounding to nearest even The method you are using has been implemented to use the later one. The Math.Round method has overloads that let you decide the rounding method. --- b { font-weight: normal; }
Thanks for clarifying my doublts.