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.


Comments to: jstl-dev@eclipse.org.
Copyright © 2019 Eclipse Foundation.
Use is subject to license terms.