Browse Subversion Repository
Annotation of /trunk/doc/en/html/macro/command/str2int.html
Parent Directory
| Revision Log
1 |
yutakapon |
214 |
<HTML> |
2 |
|
|
<HEAD> |
3 |
|
|
<TITLE>str2int</TITLE> |
4 |
|
|
<link rel="stylesheet" href="../../style.css" type="text/css"> |
5 |
|
|
</HEAD> |
6 |
|
|
<BODY> |
7 |
|
|
|
8 |
|
|
<DIV ALIGN="left"> |
9 |
|
|
<FONT SIZE="+2">str2int</FONT><BR><BR> |
10 |
|
|
</div> |
11 |
|
|
|
12 |
|
|
Format: |
13 |
|
|
<UL> |
14 |
|
|
<B>str2int <intvar> <string></B> |
15 |
|
|
</UL> |
16 |
|
|
<P></P> |
17 |
|
|
|
18 |
|
|
Converts the <string> which represents a decimal number to its numeric value. |
19 |
|
|
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. |
20 |
|
|
<P></P> |
21 |
|
|
|
22 |
|
|
<pre> |
23 |
|
|
Example: |
24 |
|
|
str2int val '123' val=123, result=1 |
25 |
|
|
str2int val '123abc' result=0 |
26 |
|
|
</pre> |
27 |
|
|
|
28 |
|
|
</BODY> |
29 |
|
|
</HTML> |
30 |
|
|
|
|