Yes. I know that with 64 bits number works, but i was trying to know the way he returned a negative number.
Ex.:
The value should be 52389094428262881.
But how that returned -1820311071 ?
Thanks for your help...
Thanks.
That helped me understanding the algo.
Now all i have to do is study a way to get VB multiplications the same way.
I´ll try, with some hard work, to find a way.
Thanks again for your help...
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]
Thanks for tryin´ to help me.
I know that .Net compilers return 52389094428262881 in an int64 variable.
But in C++ int32 return -1820311071, i don´t know why.
And i need to know how to make it return like the C++ version or else the algorythm won´t work.
Do you know why?
Thanks for...
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.