N
Nick Weekes
Im just curious as to why the following applies to conversions of
Double/Float to integers (taken from MS docs):
"When you convert from a double or float value to an integral type, the
value is rounded towards zero to the nearest integral value"
Doesn't this produce inaccurate values, i.e. 2.9 becomes 2? Why
weren't other rounding rules applied?
Just a thought...
Double/Float to integers (taken from MS docs):
"When you convert from a double or float value to an integral type, the
value is rounded towards zero to the nearest integral value"
Doesn't this produce inaccurate values, i.e. 2.9 becomes 2? Why
weren't other rounding rules applied?
Just a thought...