Difference between revisions of "StrToNum"

From MultiCharts
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 ====
+
== 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.
 
   
 
   
 +
== 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.