+1 888 340 6572

StrToNum: Difference between revisions

From MultiCharts
(Created page with "Converts a specified string expression to a numerical value. ==== Usage ==== <syntaxhighlight>StrToNum("String")</syntaxhighlight> Where: String - a string expressio...")
 
mNo edit summary
Line 1: Line 1:
Converts a specified string expression to a numerical value.  
Converts a specified string expression to a numerical value.  
   
   
==== Usage ====
== Usage ==
<syntaxhighlight>StrToNum("String")</syntaxhighlight>  
<syntaxhighlight>StrToNum("String")</syntaxhighlight>  


Where: [[String]]  - a string expression to be converted  
Where:  
 
:'''String''' - a string expression to be converted.
   
   
==== Notes ====  
== 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 ====
== Example ==
<syntaxhighlight>StrToNum("2500.70");   will return a value of 2500.70</syntaxhighlight>
<syntaxhighlight>StrToNum("2500.70");</syntaxhighlight>
Will return a numeric value of 2500.70.
   
   
[[Category:Text Manipulation]]
[[Category:Text Manipulation]]

Revision as of 07:24, 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.