Java Integer Create toInt(double d)

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

Description

Simple method to convert a Double object to a primitive int

License

Open Source License

Declaration

public static int toInt(double d) 

Method Source Code

//package com.java2s;
//License from project: Open Source License 

public class Main {
    /**//  ww w.  j  a  v a  2 s  .  com
     * Simple method to convert a Double object to a primitive int
     */
    public static int toInt(double d) {
        return (int) d;
    }
}

Related

  1. toInt(byte[] value)
  2. toInt(char msc, char lsc)
  3. toInt(char[] bytes, boolean le)
  4. toInt(double d)
  5. toInt(double d)
  6. toInt(double f)
  7. toInt(double in)
  8. toInt(double num)
  9. toInt(double val)