Java Type Size sizeOfFloat(float f)

Here you can find the source of sizeOfFloat(float f)

Description

size Of Float

License

Apache License

Declaration

public static int sizeOfFloat(float f) 

Method Source Code

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

Related

  1. sizeOf(String type)
  2. sizeOf(String typeDescriptor)
  3. sizeOfBinary(int maximumNumber)
  4. sizeOfCompactInt(int i)
  5. sizeOfEnumValue(T enumValue)
  6. sizeOfInt()
  7. sizeOfInt(int x)
  8. sizeOfInVarInt32(int length)
  9. sizeOfPrimitive(Object object)