home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
PC Welt 2006 January
/
PCWELT_1_2006.ISO
/
pcwsoft
/
autoit-v3-setup.exe
/
Examples
/
StringFormat.au3
< prev
next >
Encoding:
Amiga
Atari
Commodore
DOS
FM Towns/JPY
Macintosh
Macintosh JP
Macintosh to JP
NeXTSTEP
RISC OS/Acorn
Shift JIS
UTF-8
Wrap
Text File
|
2004-09-22
|
291 b
|
9 lines
$string = "string"
$float = 12.3
$int = 345
$s =StringFormat ( "var1=%s var2=%.2f, var3=%d" ,$string, $float, $int )
$msgbox(0, "Result", $s)
; will output "var1=string var2=12.30 var3=345"
; notice the 12.30 done with the %.2f which force 2 digits after the decimal point