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>sign
</refentrytitle>
13 <manvolnum>3G
</manvolnum>
16 <refname>sign
</refname>
17 <refpurpose>extract the sign of the parameter
</refpurpose>
19 <refsynopsisdiv><title>Declaration
</title>
22 <funcdef>genType
<function>sign
</function></funcdef>
23 <paramdef>genType
<parameter>x
</parameter></paramdef>
28 <funcdef>genIType
<function>sign
</function></funcdef>
29 <paramdef>genIType
<parameter>x
</parameter></paramdef>
34 <funcdef>genDType
<function>sign
</function></funcdef>
35 <paramdef>genDType
<parameter>x
</parameter></paramdef>
39 <refsect1 id=
"parameters"><title>Parameters
</title>
42 <term><parameter>x
</parameter></term>
45 Specify the value from which to extract the sign.
51 <refsect1 id=
"description"><title>Description
</title>
53 <function>abs
</function> returns
1.0 if
54 <inlineequation><mml:math><mml:apply><mml:lt /><mml:mi>x
</mml:mi><mml:mn>0.0</mml:mn></mml:apply></mml:math></inlineequation>,
56 <inlineequation><mml:math><mml:apply><mml:eq /><mml:mi>x
</mml:mi><mml:mn>0.0</mml:mn></mml:apply></mml:math></inlineequation> and
58 <inlineequation><mml:math><mml:apply><mml:gt /><mml:mi>x
</mml:mi><mml:mn>0.0</mml:mn></mml:apply></mml:math></inlineequation>.
61 <refsect1 id=
"versions"><title>Version Support
</title>
62 <informaltable frame=
"topbot">
67 <entry>sign (genType)
</entry>#newin13#
70 <entry>sign (genIType)
</entry>#newin15#
73 <entry>sign (genDType)
</entry>#newin40#
79 <refsect1 id=
"seealso"><title>See Also
</title>
81 <citerefentry><refentrytitle>sign
</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>.