Java Double to Int doubleToInteger(Double num)

Here you can find the source of doubleToInteger(Double num)

Description

double To Integer

License

Open Source License

Declaration

public static Integer doubleToInteger(Double num) 

Method Source Code

//package com.java2s;

public class Main {
    public static Integer doubleToInteger(Double num) {
        return Math.round(Math.round(num));
    }/*from w  w w  .  j a v  a2 s. c  o  m*/
}

Related

  1. doubleToInt(double[] values)
  2. doubleToInt(double[][] array)
  3. doubleToInt100000(double d)
  4. doubleToInt64(Double r)
  5. doubleToInt64Bits(double d)
  6. doubleToIntString(final double value)