Sophie

Sophie

distrib > Mageia > 7 > armv7hl > by-pkgid > b3bdfe6d859a3d6920ff2c44b38e9a6f > files > 323

saxon-manual-9.4.0.9-2.mga7.noarch.rpm

<?xml version="1.0" encoding="iso-8859-1"?>
<?xml-stylesheet href="../../make-menu.xsl" type="text/xsl"?><html>
   <head>
      <this-is section="extensions" page="functions" subpage="is-whole-number"/>
      <!--
           Generated at 2011-12-09T20:47:22.916Z--><title>Saxonica: XSLT and XQuery Processing: saxon:is-whole-number()</title>
      <meta name="coverage" content="Worldwide"/>
      <meta name="copyright" content="Copyright Saxonica Ltd"/>
      <meta name="title"
            content="Saxonica: XSLT and XQuery Processing: saxon:is-whole-number()"/>
      <meta name="robots" content="noindex,nofollow"/>
      <link rel="stylesheet" href="../../saxondocs.css" type="text/css"/>
   </head>
   <body class="main">
      <h1>saxon:is-whole-number()</h1>
      <p><b>saxon:is-whole-number($arg as numeric?) ==&gt; boolean</b></p>
      <p>This function takes a number as input and returns true if the number has no fractional part, that is,
if it is equal to some integer. If an empty sequence is supplied, the function returns false.</p>
      <p><i>This function is provided largely because it is used internally by the Saxon optimizer.</i></p>
      <p>Example:</p>
      <div class="codeblock"
           style="border: solid thin; background-color: #B1CCC7; padding: 2px">
         <pre>
            <code>saxon:is-whole-number(12e0)</code>
         </pre>
      </div>
      <p>will return true.</p>
      <table width="100%">
         <tr>
            <td>
               <p align="right"><a class="nav" href="item-at.xml">Next</a></p>
            </td>
         </tr>
      </table>
   </body>
</html>