Darwin Help

Back to Index

atoi

Function atoi - convert characters to integers

Calling Sequence  atoi(t)
Parameters
NameTypeDescription

t string 
Return Type  integer
Synopsis The parameter t should be a string value formed over the symbols 0..9 and the period symbol (.). This function returns an integer value equal to trunc(tt) where tt is the integer value of t.
Examples
> atoi('3993');
3993
> atoi('-3.9');
-3
> type(");
integer
See also sprintf,   trunc