I
Israel
(disclaimer: forget the fact that it's not a wise idea to blindly cast
a double to an int)
If you debug the following code:
double ThresholdHigh = 9e+9;
double ThresholdHigh_int = (int)ThresholdHigh;
And then add both of these to the watch window:
ThresholdHigh_int
(int)ThresholdHigh
They will have different values after executing the above code. The
first will be -2147483648 and the second will be 410065408.
I'm using DevStudio 2005.
a double to an int)
If you debug the following code:
double ThresholdHigh = 9e+9;
double ThresholdHigh_int = (int)ThresholdHigh;
And then add both of these to the watch window:
ThresholdHigh_int
(int)ThresholdHigh
They will have different values after executing the above code. The
first will be -2147483648 and the second will be 410065408.
I'm using DevStudio 2005.