FUNCTION:  Lang.float

Lang.float( )
The Lang.float function returns a boolean value that indicates whether the browser supports floating-point numeration. A true signifies that floating-point is supported. A false signifies that it is not supported.
If the browser does not support floating-point arithmetic operations, then the browser will not recognize the Float Library, nor any of the member functions. In this case, each member function will return an invalid.
The Lang.isFloat function can be used to determine if a value can be converted to a floating-point number using the Lang.parseFloat function.
This function does not take a parameter.
Code for FloatExample.wml
<?xml version="1.0"?>

<card id="card1">
   float example
   <do type="accept">
      <go href="FloatExample.wmls#findfloat()" />

<card id="card2">
   floating-point = $(floattest)


Code for FloatExample.wmls
extern function findfloat()
   var result = Lang.float( );
   WMLBrowser.setVar("floattest", result);

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