Hi.
Does anyone know why in a multiplication with large numbers, c++ returns negative numbers?
[ C++ ]
long Var;
Var = 228886641;
Var = Var * Var;
I need to know why this code returns -1820311071.
Help will be apreciated... [thumbsup2]
Hi.
I´m tryin´ to convert a C++ algorythm to VB.Net but i get an overflow error
in a int32 variable.
[ C++ ]
long Var;
Var = 228886641;
Var = Var * Var;
This code returns -1820311071 in C++, but gives a overflow error
in VB.NET!
Someone can help me, plz ???
I´ll be apreciated...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.