U
Unknown
Why does this overflow?
long testmath = (898 * 360 + 30) * 24 * 60 * 60 * 1000 / 25;
but if I do it this way it works..
long testmath1 = (898 * 360 + 30)
long testmath2 = testmath1 * 24 * 60 * 60 * 1000 / 25;
How can I get it so that it works properly in the first definition..?
Thanks.
long testmath = (898 * 360 + 30) * 24 * 60 * 60 * 1000 / 25;
but if I do it this way it works..
long testmath1 = (898 * 360 + 30)
long testmath2 = testmath1 * 24 * 60 * 60 * 1000 / 25;
How can I get it so that it works properly in the first definition..?
Thanks.