19.3. Checking Whether Mobile Devices Support Floating-point Numbers and Operations: float() Function

The float() function returns a Boolean value indicating whether a mobile device supports floating-point numbers and operations. Here is an example:


var supportFloatType = Lang.float();


If the mobile device supports floating-point numbers and operations, the supportFloatType variable will contain the value true.

Note that if the return value of the float() function is false, the functions listed below will not work and all of them will return the invalid value if they are called:


Previous Page Page 58 of 71 Next Page


A button for going back to the top of this page