frexp — split a floating point number
genType frexp(
genType x, out genIType exp)
;
genDType frexp(
genDType x, out genIType exp)
;
x
Specifies the value from which significand and exponent are to be extracted.
out exp
Specifies the variable into which to place the exponent
frexp
extracts x
into a floating-point significand
in the range [0.5, 1.0) and in integral exponent of two, such that:
The significand is returned by the function and the exponent is returned in the output
parameter exp
. For a floating-point value of zero, the
significand and exponent are both zero. For a floating-point value that is an
infinity or a floating-point NaN, the results are undefined.
Function | Version 1.10 | Version 1.20 | Version 1.30 | Version 1.40 | Version 1.50 | Version 3.30 | Version 4.00 | Version 4.10 | Version 4.20 | Version 4.30 |
---|---|---|---|---|---|---|---|---|---|---|
frexp (genType) | - | - | - | - | - | - | Y | Y | Y | Y |
frexp (genDType) | - | - | - | - | - | - | Y | Y | Y | Y |
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/.