MCPcopy Create free account
hub / github.com/codenameone/CodenameOne / floatToIntBits

Method floatToIntBits

Ports/CLDC11/src/java/lang/Float.java:82–84  ·  view source on GitHub ↗
(float value)

Source from the content-addressed store, hash-verified

80 /// Returns the bit representation of a single-float value. The result is a representation of the floating-point argument according to the IEEE 754 floating-point "single precision" bit layout. Bit 31 (the bit that is selected by the mask 0x80000000) represents the sign of the floating-point number. Bits 30-23 (the bits that are selected by the mask 0x7f800000) represent the exponent. Bits 22-0 (the bits that are selected by the mask 0x007fffff) represent the significand (sometimes called the mantissa) of the floating-point number. If the argument is positive infinity, the result is 0x7f800000. If the argument is negative infinity, the result is 0xff800000. If the argument is NaN, the result is 0x7fc00000. In all cases, the result is an integer that, when given to the
81 /// method, will produce a floating-point value equal to the argument to floatToIntBits.
82 public static int floatToIntBits(float value){
83 return 0; //TODO codavaj!!
84 }
85
86 /// Returns the float value of this Float object.
87 public float floatValue(){

Callers 12

binarySearchMethod · 0.95
hashCodeMethod · 0.95
equalsMethod · 0.95
hashCodeMethod · 0.95
hashCodeMethod · 0.95
hashCodeMethod · 0.95
getShapeIDMethod · 0.95
hashCodeMethod · 0.95
toHexStringMethod · 0.95
binarySearchMethod · 0.95
hashCodeMethod · 0.95
equalsMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected