1 <?xml version=
"1.0" encoding=
"UTF-8"?>
2 <!DOCTYPE book PUBLIC
"-//OASIS//DTD DocBook MathML Module V1.1b1//EN"
3 "http://www.oasis-open.org/docbook/xml/mathml/1.1CR1/dbmathml.dtd">
9 <holder>Khronos Group
</holder>
12 <refentrytitle>ldexp
</refentrytitle>
13 <manvolnum>3G
</manvolnum>
16 <refname>ldexp
</refname>
17 <refpurpose>assemble a floating point number from a value and exponent
</refpurpose>
19 <refsynopsisdiv><title>Declaration
</title>
22 <funcdef>genType
<function>ldexp
</function></funcdef>
23 <paramdef>genType
<parameter>x
</parameter></paramdef>
24 <paramdef>genIType
<parameter>exp
</parameter></paramdef>
27 <funcdef>genDType
<function>ldexp
</function></funcdef>
28 <paramdef>genDType
<parameter>x
</parameter></paramdef>
29 <paramdef>genIType
<parameter>exp
</parameter></paramdef>
33 <refsect1 id=
"parameters"><title>Parameters
</title>
36 <term><parameter>x
</parameter></term>
39 Specifies the value to be used as a source of significand.
44 <term><parameter>out exp
</parameter></term>
47 Specifies the value to be used as a source of exponent.
53 <refsect1 id=
"description"><title>Description
</title>
55 <function>ldexp
</function> builds a floating point number from
<parameter>x
</parameter> and
56 the corresponding integral exponent of two in
<parameter>exp
</parameter>, returning:
59 <inlineequation><mml:math>
60 <mml:mi>significand
</mml:mi>
61 <mml:mo lspace='
2px' rspace='
2px'
>⋅</mml:mo>
64 <mml:mi>exponent
</mml:mi>
66 </mml:math></inlineequation>
69 If this product is too large to be represented in the floating point type, the result
73 <refsect1 id=
"versions"><title>Version Support
</title>
74 <informaltable frame=
"topbot">
79 <entry>ldexp (genType)
</entry>#newin40#
82 <entry>ldexp (genDType)
</entry>#newin40#
88 <refsect1 id=
"seealso"><title>See Also
</title>
90 <citerefentry><refentrytitle>frexp
</refentrytitle></citerefentry>
93 <refsect1 id=
"Copyright"><title>Copyright
</title>
95 Copyright
<trademark class=
"copyright"></trademark> 2011 Khronos Group.
96 This material may be distributed subject to the terms and conditions set forth in
97 the Open Publication License, v
1.0,
8 June
1999.
98 <ulink url=
"http://opencontent.org/openpub/">http://opencontent.org/openpub/
</ulink>.