Here you can find the source of floatToChar(float[] values)
public static char[] floatToChar(float[] values)
//package com.java2s; public class Main { public static char[] floatToChar(float[] values) { if (values == null) { return null; }/*from ww w . j a v a 2 s .c o m*/ char[] results = new char[values.length]; for (int i = 0; i < values.length; i++) { results[i] = (char) values[i]; } return results; } }