%@ taglib prefix="fmt" uri="http://java.sun.com/jstl/fmt" %>
JSTL: Formatting/I18N Support -- Number, Currency, and Percent
Example
Formatting numbers, currencies, and percentages using en-US
locale
- Format "123456789" as number:
- Format "123456789" as percent:
123456789
- Format "12345.67" as currency:
- Format "12345.67" as currency, with
grouping turned off, the maximum number of digits in the integer portion
limited to 4, and no fraction portion:
- Format "12345.67" as currency:
then parse its integer portion only and output the result: