Ticket #754 ( Pending Customer )

Short Description Checking a variable to see if it is numeric
Entered By: gaucho When: 2001-05-04 13:45:41 Build: 2.0.6F
Categories Type: Question   Department: Product   Category: Not Categorized

Is there a function to check if a number is numeric?

Append By: WindSurfer  When: 2001-05-04 14:16:08  New Status: Pending Customer
Sorry, no, but we do this in javascript when we need to--

<script language="javascript">
var SignedNumOnlyList="0123456789";

function textIsNumeric(data)
 var i,dataLength=data.length;
 for (i=0; i<dataLength; i++)
  if (SignedNumOnlyList.indexOf(data.charAt(i))==-1)
    return false;
  return true;