MACROMEDIA COLDFUSION 4.5-CFML LANGUAGE Bedienungsanleitung Seite 37

  • Herunterladen
  • Zu meinen Handbüchern hinzufügen
  • Drucken
  • Seite
    / 44
  • Inhaltsverzeichnis
  • LESEZEICHEN
  • Bewertet. / 5. Basierend auf Kundenbewertungen
Seitenansicht 36
37Writing CFX Tags with Visual C++
Listing 30.7 (continued)
<p>
Standard deviation of the merchandise prices:
<strong>#NumberFormat(MerchStdDev, “0.00”)#</strong>
<br>
<p>
<emp>(numbers rounded to two decimal points)</emp>
<br>
</cfoutput>
</body>
</html>
Because the merchandise prices vary greatly (there are only about a dozen data points in the sample
database, but the prices range from $7.50 to $950.00), we will expect to see a relatively high stan-
dard deviation. Conversely, since the film ratings vary only slightly (many of the rating values are
exactly the same from film to film, and the total range is only from 1 to 6), we will expect to see a
low standard deviation. Happily, the page generated by Listing 30.7 is consistent with these expec-
tations (Figure 30.10).
Other C++ Examples
Other examples of CFX tags created with C++ can be found in the CFusionMX7\cfx\examples folder
that gets installed automatically with ColdFusion. The examples include a
<CFX_DirectoryList>
tag that operates similarly to the built-in <cfdirectory> tag, and a <cfx_nt_userdb> tag that allows
you to add and remove users from a Windows domain or workgroup.
Figure 30.10
CFX tags can return
CFML variables that
can be displayed like
any other variable.
Seitenansicht 36
1 2 ... 32 33 34 35 36 37 38 39 40 41 42 43 44

Kommentare zu diesen Handbüchern

Keine Kommentare