Please visit our sponsors !
WMLScript Lang Library
The Lang library contains a set of functions that are closely related to the WMLScript core.
The Lang Library
The Lang Library contains functions for absolute value calculations, data type manipulation,
and random number generation.
Function |
Description |
abort() |
Aborts a WMLScript and returns a message to the
caller of the script |
abs() |
Returns the absolute value of a number
|
characterSet() |
Returns the character set
supported by the WMLScript interpreter |
exit() |
Exits a WMLScript and returns a message to the caller
of the script |
float() |
Returns true if floating-point numbers are supported,
and false if not |
isFloat() |
Returns true if a specified value can be converted into
a floating-point number by the parseFloat() function, and false if not |
isInt() |
Returns true if a specified value can be converted into an integer
by the parseInt() function, and false if not |
max() |
Returns the largest value of two numbers |
maxInt() |
Returns the maximum possible integer value |
min() |
Returns the smallest value of two numbers |
minInt() |
Returns the minimum possible integer value |
parseFloat() |
Returns a floating-point value defined by a
string |
parseInt() |
Returns an integer defined by a string |
random() |
Returns a random integer between 0 and a specified number |
seed() |
Initializes the random number generator
with a number, and returns an empty string |
Note: You may have noticed, that the Lang Library contains some functions that you would expect to find in a Math Library.
We think that the Lang Library has a slightly misleading name. But it is called the Lang
Library because it contains functions that are closely related to the core of
the WMLScript engine.
Also notice the existence of a Float Library.
Jump to: Top of Page
or HOME or
Printer friendly page
Search W3Schools:
What Others Say About Us
Does the world know about us? Check out these places:
Dogpile
Alta Vista
MSN
Google
Excite
Lycos
Yahoo
Ask Jeeves
We Help You For Free. You Can Help Us!
W3Schools is for training only. We do not warrant its correctness or its fitness for use.
The risk of using it remains entirely with the user. While using this site, you agree to have read and accepted our
terms of use and
privacy policy.
Copyright 1999-2002 by Refsnes Data. All Rights Reserved
|