Java Double Number Round round2Places(Double input)

Here you can find the source of round2Places(Double input)

Description

round Places

License

LGPL

Declaration

public static Double round2Places(Double input) 

Method Source Code

//package com.java2s;
//License from project: LGPL 

public class Main {
    public static Double round2Places(Double input) {
        return Math.round(input * 100.0) / 100.0;
    }//ww  w  .j  ava 2s. c  o m
}

Related

  1. round(final double x, final int digits)
  2. round2(double d)
  3. round2(double num)
  4. round2(final double arg)
  5. round2(int a, int preserveDigits)
  6. round5(final double value)
  7. round_double(double d)
  8. round_nearestmultipleof5(double value)
  9. roundAndScale(double startValue, int places)