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…')
 
m (4 revisions imported)
 
(3 intermediate revisions by the same user not shown)
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 ==
  
  var a:="234";
+
  #include <string>
var c:=toint[a];
+
 +
function void main() {
 +
    var a:="234";
 +
    var c:=toint(a);
 +
};
 +
 
 +
''Since: Version 0.41b''
  
 
[[Category:Function Library]]
 
[[Category:Function Library]]
 
[[Category:String Functions]]
 
[[Category:String Functions]]

Latest revision as of 15:44, 15 April 2019

Overview

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

Example

#include <string>

function void main() {
   var a:="234";
   var c:=toint(a);
};

Since: Version 0.41b