FREXP(3G)

    .SH "NAME" frexp - split a floating point number
    .SH "DECLARATION"

            .HP u genType frexp(genType x, out genIType exp);
            .HP u genDType frexp(genDType x, out genIType exp);

    .SH "PARAMETERS"

        .PP x

                    Specifies the value from which significand and exponent are to be extracted.

            .RE
            .PP out exp

                        Specifies the variable into which to place the exponent

                .RE

            .SH "DESCRIPTION"
                .PP frexp extracts x into a floating-point significand in the range [0.5, 1.0) and in integral exponent of two, such that:
                .PP x = significand ⋅ 2 exponent
                .PP 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.

            .SH "VERSION SUPPORT"
                .TS allbox tab(:); lB cB s s s s s s s s s s s lB cB cB cB cB cB cB cB cB cB cB cB cB. T{ T}:T{ OpenGL Shading Language Version T} T{ Function Name T}:T{ 1.10 T}:T{ 1.20 T}:T{ 1.30 T}:T{ 1.40 T}:T{ 1.50 T}:T{ 3.30 T}:T{ 4.00 T}:T{ 4.10 T}:T{ 4.20 T}:T{ 4.30 T}:T{ 4.40 T}:T{ 4.50 T} l c c c c c c c c c c c c l c c c c c c c c c c c c. T{ frexp (genType) T}:T{ - T}:T{ - T}:T{ - T}:T{ - T}:T{ - T}:T{ - T}:T{ ✔ T}:T{ ✔ T}:T{ ✔ T}:T{ ✔ T}:T{ ✔ T}:T{ ✔ T} T{ frexp (genDType) T}:T{ - T}:T{ - T}:T{ - T}:T{ - T}:T{ - T}:T{ - T}:T{ ✔ T}:T{ ✔ T}:T{ ✔ T}:T{ ✔ T}:T{ ✔ T}:T{ ✔ T}

            .SH "SEE ALSO"
                .PP ldexp()

            .SH "COPYRIGHT"
                .PP 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. https://opencontent.org/openpub/.

COPYRIGHT
Copyright © 2011-2014 Khronos Group