Search:

Type: Posts; User: CameronFaust

Search: Search took 0.13 seconds.

  1. Re: Double always == 0! And a Javadoc issue! (Using NetBeans)

    DOH! That would make sense!

    Actually: I fixed the problem by casting it before i set the variable so:

    double headsPercentage = 100 * ((double)totalNumberOfHeads / totalNumberOfTosses);
    double...
  2. Double always == 0! And a Javadoc issue! (Using NetBeans)

    I cannot for the life of me figure out why headsPercentage and tailsPercentage always = 0! I've debugged step by step and totalNumberOfHead, totalNumberOfTails, and totalNumberOfTosses are never 0....
Results 1 to 2 of 2