reference/math/functions/is-nan.xml
61374bbe228e8e9c55a24aba59a1e2bb2a871148
...
...
@@ -13,25 +13,25 @@
13
13
<methodparam><type>float</type><parameter>num</parameter></methodparam>
14
14
</methodsynopsis>
15
15
<para>
16
-
Returns whether the given <parameter>num</parameter> is <literal>NAN</literal> (<quote>Not A Number</quote>).
16
+
Returns whether the given <parameter>num</parameter> is <constant>NAN</constant> (<quote>Not A Number</quote>).
17
17
</para>
18
18
<para>
19
-
<literal>NAN</literal> is returned from mathematical operations that are undefined,
19
+
<constant>NAN</constant> is returned from mathematical operations that are undefined,
20
20
for example when passing parameters outside of function’s input domain. The square root
21
21
(<function>sqrt</function>) is only defined for positive numbers, passing a negative number
22
-
will result in <literal>NAN</literal>. Other examples of operations returning <literal>NAN</literal>
23
-
are dividing <literal>INF</literal> by <literal>INF</literal> and any operation involving an
24
-
existing <literal>NAN</literal> value.
22
+
will result in <constant>NAN</constant>. Other examples of operations returning <constant>NAN</constant>
23
+
are dividing <constant>INF</constant> by <constant>INF</constant> and any operation involving an
24
+
existing <constant>NAN</constant> value.
25
25
</para>
26
26
<note>
27
27
<para>
28
-
Despite its name of <quote>Not A Number</quote>, <literal>NAN</literal> is a valid value of type &float;.
28
+
Despite its name of <quote>Not A Number</quote>, <constant>NAN</constant> is a valid value of type &float;.
29
29
</para>
30
30
</note>
31
31
<caution>
32
32
<para>
33
-
<literal>NAN</literal> does not compare equal to <literal>NAN</literal>. To check whether
34
-
a float is <literal>NAN</literal>, <function>is_nan</function> must be used. Checking
33
+
<constant>NAN</constant> does not compare equal to <constant>NAN</constant>. To check whether
34
+
a float is <constant>NAN</constant>, <function>is_nan</function> must be used. Checking
35
35
<code>$float === NAN</code> will not work.
36
36
</para>
37
37
</caution>
...
...
@@ -56,7 +56,7 @@
56
56
<refsect1 role="returnvalues">
57
57
&reftitle.returnvalues;
58
58
<para>
59
-
&true; if <parameter>num</parameter> is <literal>NAN</literal>, else &false;.
59
+
&true; if <parameter>num</parameter> is <constant>NAN</constant>, else &false;.
60
60
</para>
61
61
</refsect1>
62
62

63
63