In my code i have following line.
double temp=(c12*fileSize);
but after multiplication i am getting -990102696.
Can any one help me on it? Is that some size limits went wrong?
(int)1700 * (int)1944038 is equal to your -990102696.
Are you sure c12 and fileSize aren't integers? If they are, the multiplication occurs with integer types, integer overflow and it is being promoted to double afterwards.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With