Browse Subversion Repository
Contents of /trunk/doc/en/html/macro/command/str2int.html
Parent Directory
| Revision Log
1 |
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" |
2 |
"http://www.w3.org/TR/html4/strict.dtd"> |
3 |
<HTML> |
4 |
<HEAD> |
5 |
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1"> |
6 |
<TITLE>str2int</TITLE> |
7 |
<META http-equiv="Content-Style-Type" content="text/css"> |
8 |
<link rel="stylesheet" href="../../style.css" type="text/css"> |
9 |
</HEAD> |
10 |
<BODY> |
11 |
|
12 |
<DIV ALIGN="left"> |
13 |
<FONT SIZE="+2">str2int</FONT><BR><BR> |
14 |
</div> |
15 |
|
16 |
Format: |
17 |
<UL> |
18 |
<B>str2int <intvar> <string></B> |
19 |
</UL> |
20 |
<P></P> |
21 |
|
22 |
Converts the <string> which represents a decimal number to its numeric value. |
23 |
The value is returned in the integer variable <intvar>. If the string is converted successfully, the system variable "result" is set to 1. Otherwise, "result" is set to zero. |
24 |
<P></P> |
25 |
|
26 |
<pre> |
27 |
Example: |
28 |
str2int val '123' val=123, result=1 |
29 |
str2int val '123abc' result=0 |
30 |
</pre> |
31 |
|
32 |
</BODY> |
33 |
</HTML> |
34 |
|
|