Here you can find the source of convertDoubleSizeToViPRLong(double size)
public static long convertDoubleSizeToViPRLong(double size)
//package com.java2s; public class Main { private static int KBYTES = 1024; public static long convertDoubleSizeToViPRLong(double size) { double kSize = size / KBYTES; return Double.valueOf(kSize).longValue(); }//w w w . ja v a 2 s. c o m }