Here you can find the source of sizeOfFloat(float f)
public static int sizeOfFloat(float f)
//package com.java2s; //License from project: Apache License public class Main { public static int sizeOfFloat(float f) { return Float.floatToIntBits(f) / Byte.SIZE; }// w w w . ja va2s . c o m }