JSTL fmt
Tag formatNumber


Formats a numeric value as a number, currency, or percentage


Tag Information
Tag Classorg.apache.taglibs.standard.tag.rt.fmt.FormatNumberTag
TagExtraInfo ClassNone
Body ContentJSP
Display NameNone

Attributes
NameRequiredRequest-timeTypeDescription
valuefalsetruejava.lang.StringNumeric value to be formatted.
typefalsetruejava.lang.StringSpecifies whether the value is to be formatted as number, currency, or percentage.
patternfalsetruejava.lang.StringCustom formatting pattern.
currencyCodefalsetruejava.lang.StringISO 4217 currency code. Applied only when formatting currencies (i.e. if type is equal to "currency"); ignored otherwise.
currencySymbolfalsetruejava.lang.StringCurrency symbol. Applied only when formatting currencies (i.e. if type is equal to "currency"); ignored otherwise.
groupingUsedfalsetruejava.lang.StringSpecifies whether the formatted output will contain any grouping separators.
maxIntegerDigitsfalsetruejava.lang.StringMaximum number of digits in the integer portion of the formatted output.
minIntegerDigitsfalsetruejava.lang.StringMinimum number of digits in the integer portion of the formatted output.
maxFractionDigitsfalsetruejava.lang.StringMaximum number of digits in the fractional portion of the formatted output.
minFractionDigitsfalsetruejava.lang.StringMinimum number of digits in the fractional portion of the formatted output.
varfalsefalsejava.lang.StringName of the exported scoped variable which stores the formatted result as a String.
scopefalsefalsejava.lang.StringScope of var.

Variables
No Variables Defined.


Output Generated by Tag Library Documentation Generator. Java, JSP, and JavaServer Pages are trademarks or registered trademarks of Sun Microsystems, Inc. in the US and other countries. Copyright 2002-4 Sun Microsystems, Inc. 4150 Network Circle Santa Clara, CA 95054, U.S.A. All Rights Reserved.