Name

intBitsToFloat, uintBitsToFloat — produce a floating point using an encoding supplied as an integer

Declaration

genType intBitsToFloat(genIType x);

genType uintBitsToFloat(genUType x);

Parameters

x

Specifies the bit encoding to return as a floating point value.

Description

intBitsToFloat and uintBitsToFloat return the encoding passed in parameter x as a floating-point value. If the encoding of a NaN is passed in x, it will not signal and the resulting value will be undefined. If the encoding of a floating point infinity is passed in parameter x, the resulting floating-point value is the corresponding (positive or negative) floating point infinity.

Version Support

FunctionVersion 1.10Version 1.20Version 1.30Version 1.40Version 1.50Version 3.30Version 4.00Version 4.10Version 4.20Version 4.30
intBitsToFloat-----YYYYY

See Also

floatBitsToInt, floatBitsToUint, isnan, isinf

Copyright

Copyright © 2011 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/.