Difference between revisions of "Toint"

From Mesham
Jump to navigationJump to search
(Created page with '== Overview == This toint[s] function will convert the string ''s'' into an integer. * '''Pass:''' A string * '''Returns:''' An integer == Example == var a:="234"; var c:=t…')
 
Line 1: Line 1:
 
== Overview ==
 
== Overview ==
  
This toint[s] function will convert the string ''s'' into an integer.
+
This toint(s) function will convert the string ''s'' into an integer.
  
* '''Pass:''' A string
+
* '''Pass:''' A [[String]]
* '''Returns:''' An integer
+
* '''Returns:''' An [[Int]]
  
 
== Example ==
 
== Example ==
  
 +
#include <string>
 
  var a:="234";
 
  var a:="234";
  var c:=toint[a];
+
  var c:=toint(a);
  
 
[[Category:Function Library]]
 
[[Category:Function Library]]
 
[[Category:String Functions]]
 
[[Category:String Functions]]

Revision as of 13:23, 13 January 2013

Overview

This toint(s) function will convert the string s into an integer.

Example

#include <string>
var a:="234";
var c:=toint(a);