Java Double Number Round roundDouble(double d)

Here you can find the source of roundDouble(double d)

Description

round Double

License

LGPL

Declaration

public static double roundDouble(double d) 

Method Source Code

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

public class Main {
    public static double roundDouble(double d) {
        return (double) (int) d;
    }//from w  w  w .j  a v  a  2  s  .  c om
}

Related

  1. roundDecimal(double x, int d)
  2. roundDecimals(double d, int decimalPlaces)
  3. roundDecimals(double x, int decimals)
  4. roundDiv(double a, double b)
  5. roundDouble(double d)
  6. roundDouble(double d, int decimals)
  7. roundDouble(double d, int place)
  8. roundDouble(double d, int places)
  9. roundDouble(double num, int precision)