<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en" dir="ltr">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<link rel="stylesheet" href="../../style.css">
<title>
Gambas Documentation - IsNumber
</title>
</head>
<table class="none" width="100%" cellpadding="0" cellspacing="0" border="0">
<tr><td align="left">
<font size="-1">
<a href="../../help+en"><img class="flag" alt="Home" border="0" src="../../img/lang/en.png" align="center"></a>&nbsp;
<a href="../lang+en">Up</a>&nbsp;
<a href="isnull+en">Previous</a>&nbsp;
<a href="isobject+en">Next</a>&nbsp;
</td></tr></table>
<div class="notab">
<h1>
IsNumber
</h1>
<div class="black"><font size="-2"><b>Syntax</b></font></div>
<pre class="syntax"><u>bRes</u> <b>= IsNumber (</b> <u>vExpr</u> <b>)</b> AS Boolean
<u>bRes</u> <b>= Number? (</b> <u>vExpr</u> <b>)</b> AS Boolean</pre><p>

Returns if an expression is a number, i.e. if it is:
<ul>
<li>A <a href="type/boolean+en">Boolean</a>.
<li>A <a href="type/byte+en">Byte</a>, <a href="type/short+en">Short</a>, <a href="type/integer+en">Integer</a> or <a href="type/long+en">Long</a> number.
<li>A <a href="type/float+en">Float</a> number.
<p>
</ul>

<div class="gray"><font size="-2"><b>Example</b></font></div>
<pre class="example">PRINT IsNumber(1)
<hr>True</pre>
<p>
<div class="gray"><font size="-2"><b>Example</b></font></div>
<pre class="example">PRINT IsNumber(False)
<hr>True</pre>
<p>
<div class="gray"><font size="-2"><b>Example</b></font></div>
<pre class="example">PRINT IsNumber(Pi)
<hr>True</pre>
<p>
<div class="gray"><font size="-2"><b>Example</b></font></div>
<pre class="example">PRINT IsNumber(Now)
<hr>False</pre>
<p>
<div class="gray"><font size="-2"><b>Example</b></font></div>
<pre class="example">PRINT IsNumber(NULL)
<hr>False</pre>
<p>
<hr><b>See also</b><br>
<a href="../cat/type+en">Datatype Functions</a>&nbsp;

</div>
</body>
</html>

