Here you can find the source of castShortToFloat(short[] x)
public static float[] castShortToFloat(short[] x)
//package com.java2s; //License from project: Open Source License public class Main { public static float[] castShortToFloat(short[] x) { float[] res = new float[x.length]; for (int i = 0; i < x.length; i++) res[i] = x[i];//from ww w. j a v a 2 s .c o m return res; } }