Be concise.
Be useful.
All contributions dictatorially edited by webmasters to match personal tastes.
Please do not paste any copyright violating material.
Please try to avoid dependencies to third-party libraries and frameworks.
I : Integer := Integer'Value (s);
(def i (Integer/parseInt s))
(def i (Integer. s))
std::string s("123");
int i;
std::from_chars(s.data(), s.data() + s.size(), i, 10);
int i = int.Parse(s);
long i = Convert.ToInt64(s);
var i = int.parse(s);
i = String.to_integer(s)
I = list_to_integer(S).
read (unit=s,fmt=*) i
Integer i = s.toInteger()
let i = read s :: Integer
let i = parseInt(s, 10)
const i = +s
const i = Number(s);
int i = Integer.parseInt(s);
Integer i = Integer.valueOf(s, 10);
int i = s.chars()
.map(x -> x - '0')
.reduce((a, b) -> (a * 10) + b)
.getAsInt();
int i = new Integer(s).intValue();
val i = s.toInt()
val i = s.toIntOrNull()
(setf i (parse-integer s))
i = tonumber(s)
$i = intval($s, 10);
my $i = $s + 0;
i = int(s)
i = s.to_i
let i = match s.parse::<i32>() {
Ok(i) => i,
Err(_e) => -1,
};
let i: i32 = s.parse().unwrap_or(0);
let i = s.parse::<i32>().unwrap();
s.toInt
(define i (string->number s))
i := s asInteger.
Dim myint As Integer = CInt(("123"))