Search:

Type: Posts; User: derekxec

Search: Search took 0.11 seconds.

  1. Re: number turning negative during calculation why???

    ahhhh found it :D i had troopnum as an int and it couldnt hold that big of a number cant believe i missed this thanks a lot :D
  2. Re: number turning negative during calculation why???

    sorry about that this is the whole code for the program here



    package testing;

    import javax.swing.*;
    import java.awt.*;
    import java.awt.event.*;
  3. number turning negative during calculation why???

    so here is my calculation and when total equals 397,683 the numbers start turning negative....why at that number and why at all? it works fine up to 397,682


    long days, hours, minutes, seconds;...
Results 1 to 3 of 3