Here you can find the source of toInt(final Double value)
Parameter | Description |
---|---|
double1 | a parameter |
public static int toInt(final Double value)
//package com.java2s; public class Main { /**//w ww . j av a2 s .co m * @param double1 * @return */ public static int toInt(final Double value) { return Integer.parseInt("" + ((long) Math.floor(value))); } }