Controls Documentation

Controls  Complex Types  Show Hierarchies  Show Full Hierarchies 

Complex Type: xp:convertNumber

f:com.ibm.xsp.BaseComplexType
   f:converterInterface
      xp:convertNumber

Description

Converts a value to a number. Used to format number values in to currency, percent, decimal or any other value based on the criteria specified using the pattern property

Properties

Java

Java Class: com.ibm.xsp.convert.NumberConverter


loaded, boolean  [Inherited]
Loaded
Specifies whether or not the tag instance should be created when the page is loading. Value defaults to 'true'.
Required Attribute false
Localizable false
Allow Runtime Binding false
Allow Load Time Binding true
Allow Non Binding true
currencyCode, string
Currency Code
Specifies the current code to use when converting the value to a currency format. Valid values are ISO 4217 currency codes, e.g. USD for US dollars.
Required Attribute false
Localizable false
Allow Runtime Binding false
Allow Load Time Binding true
Allow Non Binding true
currencySymbol, string
Currency Symbol
Specifies the currency symbol to use when formatting currencies
Required Attribute false
Localizable false
Allow Runtime Binding false
Allow Load Time Binding true
Allow Non Binding true
groupingUsed, boolean
Grouping Used
Specifies whether the converted value will contain grouping separators. Defaults to true.
Required Attribute false
Localizable false
Allow Runtime Binding false
Allow Load Time Binding true
Allow Non Binding true
integerOnly, boolean
Integer Only
Specifies whether only the integer part of the value string will be formatted and parsed. Defaults to false.
Required Attribute false
Localizable false
Allow Runtime Binding false
Allow Load Time Binding true
Allow Non Binding true
locale,
Locale
Specifies a locale to use when formatting and parsing styles for numbers. Value can be a string or an expression that evaluates to a locale data type.
Required Attribute false
Localizable false
Allow Runtime Binding false
Allow Load Time Binding true
Allow Non Binding true
maxFractionDigits, int
Maximum Fraction Digits
Specifies the maximum number of digits that will be formatted in the fractional portion of the number
Required Attribute false
Localizable false
Allow Runtime Binding false
Allow Load Time Binding true
Allow Non Binding true
maxIntegerDigits, int
Maximum Integer Digits
Specifies the maximum number of digits that will be formatted in the integer portion of the number
Required Attribute false
Localizable false
Allow Runtime Binding false
Allow Load Time Binding true
Allow Non Binding true
minFractionDigits, int
Minimum Fraction Digits
Specifies the minimum number of digits that will be formatted in the fractional portion of the number
Required Attribute false
Localizable false
Allow Runtime Binding false
Allow Load Time Binding true
Allow Non Binding true
minIntegerDigits, int
Min Integer Digits
Specifies the minimum number of digits that will be formatted in the integer portion of the number
Required Attribute false
Localizable false
Allow Runtime Binding false
Allow Load Time Binding true
Allow Non Binding true
pattern, string
Pattern
Specifies the pattern that determines how the number string should be formatted and parsed
Required Attribute false
Localizable false
Allow Runtime Binding false
Allow Load Time Binding true
Allow Non Binding true
type, string
Type
Specifies how the number string will be formatted and parsed. Valid values are "number", "currency", and "percent". Defaults to "number".
Required Attribute false
Localizable false
Allow Runtime Binding false
Allow Load Time Binding true
Allow Non Binding true