Here you can find the source of convertDoubleToLong(Double value)
public static Long convertDoubleToLong(Double value)
//package com.java2s; /*//from ww w . j a v a 2 s . c o m * Copyright (C) 2010 Viettel Telecom. All rights reserved. * VIETTEL PROPRIETARY/CONFIDENTIAL. Use is subject to license terms. */ public class Main { public static Long convertDoubleToLong(Double value) { return value == null ? 0L : Long.parseLong(value.toString().replace(".0", "")); } }