Java Float to floatToChar(float[] values)

Here you can find the source of floatToChar(float[] values)

Description

float To Char

License

Open Source License

Declaration

public static char[] floatToChar(float[] values) 

Method Source Code

//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;
    }
}

Related

  1. floatToBasicType(float f, Class clazz)
  2. floatToBinaryStringUnsigned(float value)
  3. floatToHalf(float f)
  4. FloatToInt(double x)
  5. floatToIntColor(float value)
  6. floatToPrefixCoded(float val)