parseNumber

From Documentation
Revision as of 07:06, 30 April 2012 by Benbai (talk | contribs) (Created page with "{{ZUMLReferencePageHeader}} The default method: <source lang="java"> Number parseNumber(String source, String pattern); </source> :i.e., <javadoc method="parseNumber(java.lang...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

The default method:

Number parseNumber(String source, String pattern);
i.e., CommonFns.parseNumber(String, String)

Parses text from the beginning of the given string to produce a number with the given pattern.

There is another extended built in function,

Number parseNumber(String source, String pattern, Locale locale);
i.e., CommonFns.parseNumber(String, String, Locale)

Parses text from the beginning of the given string to produce a number with the given pattern and locale.

You can define a method to use this function by xel-method


Parameters: In both default and extended function:

  • source - the text to parse
  • pattern - the pattern to apply

In extended function only:

  • locale - the locale to apply

Version History

Last Update : 2012/04/30


Version Date Content
6.0.1    



Last Update : 2012/04/30

Copyright © Potix Corporation. This article is licensed under GNU Free Documentation License.