Open-Source-Software-Entwicklung und Downloads

Browse Subversion Repository

Contents of /trunk/doc/en/html/macro/command/str2int.html

Parent Directory Parent Directory | Revision Log Revision Log


Revision 332 - (show annotations) (download) (as text)
Sun Dec 17 15:20:31 2006 UTC (17 years, 5 months ago) by maya
Original Path: doc/trunk/en/html/macro/command/str2int.html
File MIME type: text/html
File size: 863 byte(s)
no message

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 &lt;intvar&gt; &lt;string&gt;</B>
19 </UL>
20 <P></P>
21
22 Converts the &lt;string&gt; which represents a decimal number to its numeric value.
23 The value is returned in the integer variable &lt;intvar&gt;. 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

Back to OSDN">Back to OSDN
ViewVC Help
Powered by ViewVC 1.1.26