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
value
Numeric value to be formatted.
 
Required: false
Request-time: true
Type: java.lang.String
type
Specifies whether the value is to be formatted as number, currency, or percentage.
 
Required: false
Request-time: true
Type: java.lang.String
pattern
Custom formatting pattern.
 
Required: false
Request-time: true
Type: java.lang.String
currencyCode
ISO 4217 currency code. Applied only when formatting currencies (i.e. if type is equal to "currency"); ignored otherwise.
 
Required: false
Request-time: true
Type: java.lang.String
currencySymbol
Currency symbol. Applied only when formatting currencies (i.e. if type is equal to "currency"); ignored otherwise.
 
Required: false
Request-time: true
Type: java.lang.String
groupingUsed
Specifies whether the formatted output will contain any grouping separators.
 
Required: false
Request-time: true
Type: java.lang.String
maxIntegerDigits
Maximum number of digits in the integer portion of the formatted output.
 
Required: false
Request-time: true
Type: java.lang.String
minIntegerDigits
Minimum number of digits in the integer portion of the formatted output.
 
Required: false
Request-time: true
Type: java.lang.String
maxFractionDigits
Maximum number of digits in the fractional portion of the formatted output.
 
Required: false
Request-time: true
Type: java.lang.String
minFractionDigits
Minimum number of digits in the fractional portion of the formatted output.
 
Required: false
Request-time: true
Type: java.lang.String
var
Name of the exported scoped variable which stores the formatted result as a String.
 
Required: false
Request-time: false
Type: java.lang.String
scope
Scope of var.
 
Required: false
Request-time: false
Type: java.lang.String

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.