FUNCTION:  Lang.minInt

Lang.minInt( )
The Lang.minInt function returns the largest negative integer number recognized by the browser.
The companion Lang.maxInt function returns the largest positive integer number recognized by the browser.
Typical maximum and minimum values are:
Max = 2147483647
Min = -2147483647
Neither function takes a parameter.
Code for MinIntExample.wml
<?xml version="1.0"?>

<card id="card1">
   minInt example
   <do type="accept">
      <go href="MinIntxample.wmls#findminint( )" />

<card id="card2">
   max = $(maxnum)
   <br />
   min = $(minnum)


Code for MinIntExample.wmls
extern function findminint( )
   var maxresult = Lang.maxInt(str);
   var minresult = Lang.minInt(str);
   WMLBrowser.setVar("maxnum", maxresult);
   WMLBrowser.setVar("minnum", minresult);

Copyright 1999-2001 by Infinite Software Solutions, Inc. All rights reserved.
Trademark Information