Java Float to Byte floatToByte(Float f)

Here you can find the source of floatToByte(Float f)

Description

float To Byte

License

Apache License

Declaration

public static byte[] floatToByte(Float f) 

Method Source Code

//package com.java2s;
//License from project: Apache License 

public class Main {
    public static byte[] floatToByte(Float f) {
        return String.valueOf(f).getBytes();
    }//from w w  w.j  av a  2  s.co  m
}

Related

  1. floatToByte(float d)
  2. floatToByte(float f)
  3. floatToByte(float f)