250ea001477d44e8d1c271be7e59e07cd5fb3ccb
[clinton/guile-figl.git] / upstream-man-pages / manglsl / sign.xml
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">
4 <refentry id="sign">
5 <refmeta>
6 <refmetainfo>
7 <copyright>
8 <year>2011</year>
9 <holder>Khronos Group</holder>
10 </copyright>
11 </refmetainfo>
12 <refentrytitle>sign</refentrytitle>
13 <manvolnum>3G</manvolnum>
14 </refmeta>
15 <refnamediv>
16 <refname>sign</refname>
17 <refpurpose>extract the sign of the parameter</refpurpose>
18 </refnamediv>
19 <refsynopsisdiv><title>Declaration</title>
20 <funcsynopsis>
21 <funcprototype>
22 <funcdef>genType <function>sign</function></funcdef>
23 <paramdef>genType <parameter>x</parameter></paramdef>
24 </funcprototype>
25 </funcsynopsis>
26 <funcsynopsis>
27 <funcprototype>
28 <funcdef>genIType <function>sign</function></funcdef>
29 <paramdef>genIType <parameter>x</parameter></paramdef>
30 </funcprototype>
31 </funcsynopsis>
32 <funcsynopsis>
33 <funcprototype>
34 <funcdef>genDType <function>sign</function></funcdef>
35 <paramdef>genDType <parameter>x</parameter></paramdef>
36 </funcprototype>
37 </funcsynopsis>
38 </refsynopsisdiv>
39 <refsect1 id="parameters"><title>Parameters</title>
40 <variablelist>
41 <varlistentry>
42 <term><parameter>x</parameter></term>
43 <listitem>
44 <para>
45 Specify the value from which to extract the sign.
46 </para>
47 </listitem>
48 </varlistentry>
49 </variablelist>
50 </refsect1>
51 <refsect1 id="description"><title>Description</title>
52 <para>
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>,
55 0.0 if
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
57 1.0 if
58 <inlineequation><mml:math><mml:apply><mml:gt /><mml:mi>x</mml:mi><mml:mn>0.0</mml:mn></mml:apply></mml:math></inlineequation>.
59 </para>
60 </refsect1>
61 <refsect1 id="versions"><title>Version Support</title>
62 <informaltable frame="topbot">
63 #VARTABLECOLS#
64 <thead>
65 #FUNCTABLEHEADER#
66 <row>
67 <entry>sign (genType)</entry>#newin13#
68 </row>
69 <row>
70 <entry>sign (genIType)</entry>#newin15#
71 </row>
72 <row>
73 <entry>sign (genDType)</entry>#newin40#
74 </row>
75 </thead>
76 </tgroup>
77 </informaltable>
78 </refsect1>
79 <refsect1 id="seealso"><title>See Also</title>
80 <para>
81 <citerefentry><refentrytitle>sign</refentrytitle></citerefentry>
82 </para>
83 </refsect1>
84 <refsect1 id="Copyright"><title>Copyright</title>
85 <para>
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>.
90 </para>
91 </refsect1>
92 </refentry>