Search:

Type: Posts; User: fh84

Search: Search took 0.07 seconds.

  1. Replies
    3
    Views
    13,947

    Re: float to 2 decimal places

    well this is the actual code:



    double meanValue = 0;
    meanValue = meanValue + rndNumber;
    double mean = meanValue / 99;
    System.out.println("The Mean Value is :" + mean);
  2. Replies
    3
    Views
    13,947

    float to 2 decimal places

    hello to all,
    is there any easy way to convert a float to 2 decimal places?
    all the examples on the net are too complicated



    f = f/99;


    this is all i want to do.
Results 1 to 2 of 2