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

Feedback Form (ExpandCollapse)

What do you think about this web page?

(Optional) Please provide us more details. For example, suppose you select option 2 above, can you tell us specifically what information is missing? You can also suggest anything that can help us improve this web page.

(Optional) Your name:

(Optional) Your email address:

Please enter again to confirm:

Due to the amount of messages we received, we may not be able to reply to all messages.

A button for going back to the top of this page