|
||||||||
|
ASP Functions Numeric functions example The regional settings on the server determine which currency and grouping symbols are returned by the function. The valid parameter values for
This example assumes the regional setting is United States.
<HTML>
.
.
.
<% 'BEGIN ASP SCRIPT
Response.Write FormatCurrency(1.231,2) 'Outputs $1.23
Response.Write FormatNumber(1.231,2) 'Outputs 1.23
Response.Write FormatPercentage(1.231,2) 'Outputs 123.00%
%>
<!–END ASP SCRIPT ––>
.
.
</HTML>
Response.Write in this example is a form of ASP's Response object.
For now, just think of it as similar to a PRINT statement in BASIC. We'll cover this in more detail in a future lesson. |
||||||||
|
|
||||||||
