| 1 | <?xml version="1.0" encoding="UTF-8"?>\r |
| 2 | <!DOCTYPE book PUBLIC "-//OASIS//DTD DocBook MathML Module V1.1b1//EN"\r |
| 3 | "http://www.oasis-open.org/docbook/xml/mathml/1.1CR1/dbmathml.dtd">\r |
| 4 | <refentry id="sign">\r |
| 5 | <refmeta>\r |
| 6 | <refmetainfo>\r |
| 7 | <copyright>\r |
| 8 | <year>2011</year>\r |
| 9 | <holder>Khronos Group</holder>\r |
| 10 | </copyright>\r |
| 11 | </refmetainfo>\r |
| 12 | <refentrytitle>sign</refentrytitle>\r |
| 13 | <manvolnum>3G</manvolnum>\r |
| 14 | </refmeta>\r |
| 15 | <refnamediv>\r |
| 16 | <refname>sign</refname>\r |
| 17 | <refpurpose>extract the sign of the parameter</refpurpose>\r |
| 18 | </refnamediv>\r |
| 19 | <refsynopsisdiv><title>Declaration</title>\r |
| 20 | <funcsynopsis>\r |
| 21 | <funcprototype>\r |
| 22 | <funcdef>genType <function>sign</function></funcdef>\r |
| 23 | <paramdef>genType <parameter>x</parameter></paramdef>\r |
| 24 | </funcprototype>\r |
| 25 | </funcsynopsis>\r |
| 26 | <funcsynopsis>\r |
| 27 | <funcprototype>\r |
| 28 | <funcdef>genIType <function>sign</function></funcdef>\r |
| 29 | <paramdef>genIType <parameter>x</parameter></paramdef>\r |
| 30 | </funcprototype>\r |
| 31 | </funcsynopsis>\r |
| 32 | <funcsynopsis>\r |
| 33 | <funcprototype>\r |
| 34 | <funcdef>genDType <function>sign</function></funcdef>\r |
| 35 | <paramdef>genDType <parameter>x</parameter></paramdef>\r |
| 36 | </funcprototype>\r |
| 37 | </funcsynopsis>\r |
| 38 | </refsynopsisdiv>\r |
| 39 | <refsect1 id="parameters"><title>Parameters</title>\r |
| 40 | <variablelist>\r |
| 41 | <varlistentry>\r |
| 42 | <term><parameter>x</parameter></term>\r |
| 43 | <listitem>\r |
| 44 | <para>\r |
| 45 | Specify the value from which to extract the sign.\r |
| 46 | </para>\r |
| 47 | </listitem>\r |
| 48 | </varlistentry>\r |
| 49 | </variablelist>\r |
| 50 | </refsect1>\r |
| 51 | <refsect1 id="description"><title>Description</title>\r |
| 52 | <para>\r |
| 53 | <function>sign</function> returns -1.0 if <parameter>x</parameter> is less than 0.0, 0.0 if <parameter>x</parameter>\r |
| 54 | is equal to 0.0, and +1.0 if <parameter>x</parameter> is greater than 0.0.\r |
| 55 | </para>\r |
| 56 | </refsect1>\r |
| 57 | <refsect1 id="versions"><title>Version Support</title>\r |
| 58 | <informaltable frame="topbot">\r |
| 59 | #VARTABLECOLS#\r |
| 60 | <thead>\r |
| 61 | #FUNCTABLEHEADER#\r |
| 62 | <row>\r |
| 63 | <entry>sign (genType)</entry>#newin13#\r |
| 64 | </row>\r |
| 65 | <row>\r |
| 66 | <entry>sign (genIType)</entry>#newin15#\r |
| 67 | </row>\r |
| 68 | <row>\r |
| 69 | <entry>sign (genDType)</entry>#newin40#\r |
| 70 | </row>\r |
| 71 | </thead>\r |
| 72 | </tgroup>\r |
| 73 | </informaltable>\r |
| 74 | </refsect1>\r |
| 75 | <refsect1 id="seealso"><title>See Also</title>\r |
| 76 | <para>\r |
| 77 | <citerefentry><refentrytitle>abs</refentrytitle></citerefentry>\r |
| 78 | </para>\r |
| 79 | </refsect1>\r |
| 80 | <refsect1 id="Copyright"><title>Copyright</title>\r |
| 81 | <para>\r |
| 82 | Copyright <trademark class="copyright"></trademark> 2011-2013 Khronos Group. \r |
| 83 | This material may be distributed subject to the terms and conditions set forth in \r |
| 84 | the Open Publication License, v 1.0, 8 June 1999.\r |
| 85 | <ulink url="http://opencontent.org/openpub/">http://opencontent.org/openpub/</ulink>.\r |
| 86 | </para>\r |
| 87 | </refsect1>\r |
| 88 | </refentry>\r |