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>modf
</refentrytitle>
13 <manvolnum>3G
</manvolnum>
16 <refname>modf
</refname>
17 <refpurpose>separate a value into its integer and fractional components
</refpurpose>
19 <refsynopsisdiv><title>Declaration
</title>
22 <funcdef>genType
<function>modf
</function></funcdef>
23 <paramdef>genType
<parameter>x
</parameter></paramdef>
24 <paramdef>out genType
<parameter>i
</parameter></paramdef>
29 <funcdef>genDType
<function>modf
</function></funcdef>
30 <paramdef>genDType
<parameter>x
</parameter></paramdef>
31 <paramdef>out genDType
<parameter>i
</parameter></paramdef>
35 <refsect1 id=
"parameters"><title>Parameters
</title>
38 <term><parameter>x
</parameter></term>
41 Specify the value to separate.
46 <term><parameter>out i
</parameter></term>
49 A variable that receives the integer part of the argument.
55 <refsect1 id=
"description"><title>Description
</title>
57 <function>modf
</function> separates a floating point value
<parameter>x
</parameter>
58 into its integer and fractional parts. The fractional part of the number is returned
59 from the function and the integer part (as a floating point quantity) is returned
60 in the output parameter
<parameter>i
</parameter>.
63 <refsect1 id=
"versions"><title>Version Support
</title>
64 <informaltable frame=
"topbot">
69 <entry>modf (genType)
</entry>#newin13#
72 <entry>modf (genDType)
</entry>#newin40#
78 <refsect1 id=
"seealso"><title>See Also
</title>
80 <citerefentry><refentrytitle>fract
</refentrytitle></citerefentry>,
81 <citerefentry><refentrytitle>floor
</refentrytitle></citerefentry>
84 <refsect1 id=
"Copyright"><title>Copyright
</title>
86 Copyright
<trademark class=
"copyright"></trademark> 2011 Khronos Group.
87 This material may be distributed subject to the terms and conditions set forth in
88 the Open Publication License, v
1.0,
8 June
1999.
89 <ulink url=
"http://opencontent.org/openpub/">http://opencontent.org/openpub/
</ulink>.