Here you can find the source of toLong(double[] in, long[] out)
public static void toLong(double[] in, long[] out)
//package com.java2s; //License from project: Open Source License public class Main { public static void toLong(double[] in, long[] out) { for (int i = 0; i < in.length; i++) { out[i] = (long) Math.round(in[i]); }/*from w ww . j a v a 2 s . c o m*/ } }