Difference between revisions of "StrToNum"
Jump to navigation
Jump to search
(Created page with "Converts a specified string expression to a numerical value. ==== Usage ==== <syntaxhighlight>StrToNum("String")</syntaxhighlight> Where: String - a string expressio...") |
m |
||
(One intermediate revision by the same user not shown) | |||
Line 1: | Line 1: | ||
Converts a specified string expression to a numerical value. | Converts a specified string expression to a numerical value. | ||
− | + | == Usage == | |
<syntaxhighlight>StrToNum("String")</syntaxhighlight> | <syntaxhighlight>StrToNum("String")</syntaxhighlight> | ||
− | Where: | + | Where: |
+ | |||
+ | :'''String''' - a string expression to be converted. | ||
− | + | == Notes == | |
If non-numeric characters are encountered the rest of the expression is ignored. | If non-numeric characters are encountered the rest of the expression is ignored. | ||
− | + | == Example == | |
− | <syntaxhighlight>StrToNum("2500.70"); | + | <syntaxhighlight>StrToNum("2500.70");</syntaxhighlight> |
+ | Will return a numeric value of 2500.70. | ||
+ | == Notes == | ||
+ | * Use [[NumToStr]] to convert a numeric value to a string. | ||
[[Category:Text Manipulation]] | [[Category:Text Manipulation]] |
Latest revision as of 07:43, 9 February 2012
Converts a specified string expression to a numerical value.
Usage
StrToNum("String")
Where:
- String - a string expression to be converted.
Notes
If non-numeric characters are encountered the rest of the expression is ignored.
Example
StrToNum("2500.70");
Will return a numeric value of 2500.70.
Notes
- Use NumToStr to convert a numeric value to a string.