O'Reilly logo

Learning WML, and WMLScript by Martin Frost

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Name

minFloat — Return the minimum supported positive floating-point value

Usage

Float.minFloat( )

Description

Always returns the same value, the smallest supported positive floating-point value.

The exact value varies from implementation to implementation. Some return the smallest normalized value (the smallest value that can be represented without losing precision); others return the smallest possible value (where precision is lost but there really is no number smaller).

This ambiguity is permitted by the specification of this function: the only thing guaranteed is that the value is less than or equal to the smallest normalized positive floating-point value, which is 1.17549435e-38 for WMLScript.

Example

Float.minFloat( )

returns a floating-point number less than or equal to 1.17549435e-38

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required