Attributes

Description

number

Automatic/Required

Specifies a desired numeric format supported by the Java class java.text.DecimalFormat.

Usage Notes

The Number converter uses the formatting and parsing methods and formats of the java.text.DecimalFormat class. For example:

This converter:

Formats the numeric value as follows:

number="#"

Truncates decimals in the rendered value.

number="###,###.##"

Uses comma as a grouping separator, and displays up to two decimal places.

number="#.00"

Always displays two decimal places, even there is no decimal value.

number="0.00"

Displays a number with two decimal places and at least one digit before the decimal point, even if any of the digits is zero.


Copyright © 1997, 2017 Oracle and/or its affiliates. All rights reserved. Legal Notices