WMLScript Tutorial
WMLScript HOME
WMLScript Intro
WMLScript How to
WML Libraries
WML Dialogs
WML Float
WML Lang
WML String
WML URL
WML Browser
Selected Reading
Web Statistics
Web Glossary
Web Hosting
Web Quality
W3Schools Tutorials
W3Schools Forum
Helping W3Schools
|
WMLScript isFloat() Function
Complete WMLScript Lang Library
The isFloat() function returns a boolean value that is true if the value parameter can be converted into
a floating-point number by the parseFloat() function, and false if not.
Syntax
| Part |
Description |
| n |
The Boolean value returned from the function |
| value |
Any value |
Example
var a = Lang.isFloat("576");
var b = Lang.isFloat("-576");
var c = Lang.isFloat("6.5");
var d = Lang.isFloat(" -9.45e2");
var e = Lang.isFloat("@13");
var f = Lang.isFloat("hello");
|
Result
a = true
b = true
c = true
d = true
e = false
f = false
|
Complete WMLScript Lang Library
 |

|
|
See why there are 20,000+ Ektron integrations worldwide.
Request an INSTANT DEMO or download a FREE TRIAL today. |
|
|
|
|
Jump to: Top of Page
or HOME or
Printer friendly page
W3Schools provides material for training only. We do not warrant the correctness of its contents.
The risk from using it lies entirely with the user.
While using this site, you agree to have read and accepted our
terms of use and
privacy policy.
Copyright 1999-2008 by Refsnes Data. All Rights Reserved.
|
|
|