Search:

Type: Posts; User: SamJava_the_Hut

Search: Search took 0.18 seconds.

  1. Re: Better ways to round floats and/or doubles?

    Thanks Jim, it works;)



    //how to control the how many numbers are to the right of a decimal point:
    double roundMe = 176.71458676442586;
    System.out.printf("Our shortened double is now:...
  2. Better ways to round floats and/or doubles?

    Hi. I'm trying to figure out how to round floating point numbers with more flexibility than just rounding to integers or rounding to two decimal places.

    Here is the class with my methods:

    ...
Results 1 to 2 of 2