N
Norvin Laudon
Hi,
Can somebody explain the following, from the MSDN documentation for the
"System.Convert.ToInt32(double)" function
<quote>
Return Value
value rounded to the nearest 32-bit signed integer. If value is halfway
between two whole numbers, the even number is returned; that is, 4.5 is
converted to 4, and 5.5 is converted to 6.
</quote>
Is there some obvious reason for this behaviour that I'm missing? Why would
one want 4.5 to be rounded to 4 rather than 5?
Confused,
Norvin
Can somebody explain the following, from the MSDN documentation for the
"System.Convert.ToInt32(double)" function
<quote>
Return Value
value rounded to the nearest 32-bit signed integer. If value is halfway
between two whole numbers, the even number is returned; that is, 4.5 is
converted to 4, and 5.5 is converted to 6.
</quote>
Is there some obvious reason for this behaviour that I'm missing? Why would
one want 4.5 to be rounded to 4 rather than 5?
Confused,
Norvin