Search:

Type: Posts; User: bdennin

Search: Search took 0.07 seconds.

  1. [SOLVED] Re: How to make Math.round() round to the nearest .1?

    String.format("%.1f", hypotenuse);


    Ahhh, so easy. I can't believe I didn't think of that. Thank you, as always.
  2. [SOLVED] How to make Math.round() round to the nearest .1?

    I want round to round to the nearest 10th instead of the nearest integer... Any ideas?


    public class Triangle
    {
    private final int leg;
    private final double hypotenuse;

    ...
Results 1 to 2 of 2