Java Double Convert to convertDoubleToLong(Double value)

Here you can find the source of convertDoubleToLong(Double value)

Description

convert Double To Long

License

Open Source License

Declaration

public static Long convertDoubleToLong(Double value) 

Method Source Code

//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", ""));
    }
}

Related

  1. convertDoubleShareToString(double shares)
  2. convertDoubleSizeToViPRLong(double size)
  3. convertDoublesToFloats(double[] input)
  4. convertdoubleToDouble(double[][] dbleArray)
  5. convertDoubleToFloat(final double[][] doubleSeries)
  6. convertDoubleToPercentage(double doub)
  7. convertDoubleToShort(double value)
  8. convertDoubleValuesFromNetcdf(double[] netcdfData, double missingValue, double scaleFactor, double offSet)
  9. double2Arr(double var, byte[] arrayBytes, int startIndex)