floatBitsToInt

From OpenGL Reference
Jump to navigation Jump to search

Produce the encoding of a floating point value as an integer.

Declaration[edit]

genIType floatBitsToInt( genType x );
genUType floatBitsToUint( genType x );


Parameters[edit]

x - Specifies the value whose floating point encoding to return.


Description[edit]

 floatBitsToInt and floatBitsToUint return the encoding of their floating-point parameters asintoruint, respectively. The floating-point bit-level representation is preserved.


Version Support[edit]

floatBitsToInt 3.3+
floatBitsToUInt 3.3+

See Also[edit]

 intBitsToFloat , uintBitsToFloat 


Copyright[edit]

Copyright© 2011-2014 Khronos Group. This material may be distributed subject to the terms and conditions set forth in the Open Publication License, v 1.0, 8 June 1999. http://opencontent.org/openpub/.