<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<link rel="stylesheet" href="../../style.css">
<title>
Gambas Documentation - IsNumber
</title>
</head>
<body>
<table class="none" width="100%" cellpadding="0" cellspacing="0" border="0">
<tr><td align="left">
<font size="-1">
<a href="../../help%3Fen"><img class="flag" alt="Home" border="0" src="../../img/lang/en.png" align="center"></a>&nbsp;&nbsp;
<a href="../lang%3Fen">Up</a>&nbsp;&nbsp;
<a href="isnull%3Fen">Previous</a>&nbsp;&nbsp;
<a href="isobject%3Fen">Next</a>&nbsp;&nbsp;
</td></tr></table>
<div class="notab">
<h1>
IsNumber
</h1>
<div class="black"><font color="white" 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%3Fen">Boolean</a>.
<li>A <a href="type/byte%3Fen">Byte</a>, <a href="type/short%3Fen">Short</a>, <a href="type/integer%3Fen">Integer</a> or <a href="type/long%3Fen">Long</a> number.
<li>A <a href="type/float%3Fen">Float</a> number.
<p>
</ul>

<div class="gray"><font color="white" size="-2"><b>Example</b></font></div>
<pre class="example">PRINT IsNumber(1)
<hr>True</pre>
<p>
<div class="gray"><font color="white" size="-2"><b>Example</b></font></div>
<pre class="example">PRINT IsNumber(False)
<hr>True</pre>
<p>
<div class="gray"><font color="white" size="-2"><b>Example</b></font></div>
<pre class="example">PRINT IsNumber(Pi)
<hr>True</pre>
<p>
<div class="gray"><font color="white" size="-2"><b>Example</b></font></div>
<pre class="example">PRINT IsNumber(Now)
<hr>False</pre>
<p>
<div class="gray"><font color="white" 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%3Fen">Datatype Functions</a>&nbsp;&nbsp;

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

