Java Double Number Round round(double d)

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

Description

Unchecked implementation to round a number.

License

LGPL

Declaration

public static int round(double d) 

Method Source Code

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

public class Main {
    /**/*from  w  ww.j  a  v  a2  s .com*/
     * Unchecked implementation to round a number. Parameter should be known to be valid in advance.
     */
    public static int round(double d) {
        return (int) (d + 0.5D);
    }
}

Related

  1. round(double amount)
  2. round(double amt, int digits)
  3. round(double d)
  4. round(double d)
  5. round(double d)
  6. round(double d)
  7. round(double d)
  8. round(double d)
  9. round(double d)