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 parseFloat() Function
Complete WMLScript Lang Library
The parseFloat() function returns a floating-point value defined by the string value.
The parsing ends on the first character that cannot be parsed as a floating-point value.
Syntax
| n = Lang.parseFloat(string) |
| Part |
Description |
| n |
The floating-point value returned from the function |
| string |
A string |
Example
var a = Lang.parseFloat("2345.14");
var b = Lang.parseFloat(" -4.45e2 Kg");
var c = Lang.parseFloat(" +4.45e2 Kg");
var d = Lang.parseFloat("-.3 C");
var e = Lang.parseFloat(" 300 ");
|
Result
a = 2345.14
b = -4.45e2
c = 4.45e2
d = -0.3
e = 300.0
|
Complete WMLScript Lang Library
Learn how your website performs under various load conditions
 |
|
WAPT
is a load, stress and performance testing tool for websites and web-based applications.
In contrast to "800-pound gorilla" load testing tools, it is designed to minimize the learning
curve and give you an ability to create a heavy load from a regular workstation.
WAPT is able to generate up to 3000 simultaneously acting virtual users using standard hardware configuration.
Virtual users in each profile are fully customizable. Basic and NTLM authentication methods are supported.
Graphs and reports are shown in real-time at different levels of detail, thus helping to manage the testing process.
Download the free 30-day trial!
|
|
|
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.
|
|
|