home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Australian Personal Computer 1999 April
/
APC443.iso
/
features
/
grpware
/
coldfus
/
coldfusi.exe
/
data1.cab
/
Documentation
/
snippets
/
decimalformat.cfm
< 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
|
1998-10-08
|
422 b
|
23 lines
<!--- This code shows the use of DecimalFormat --->
<HTML>
<HEAD>
<TITLE>
DecimalFormat Example
</TITLE>
</HEAD>
<BODY bgcolor=silver>
<H3>DecimalFormat Function</H3>
<P>Returns a number to two decimal places.
<P>
<CFLOOP FROM=1 TO=20 INDEX="counter">
<CFOUTPUT>
#counter# * Square Root of 2: #DecimalFormat("#Evaluate("#counter# * #sqr(2)#")#")#
</CFOUTPUT>
<BR>
</CFLOOP>
</BODY>
</HTML>