Formatting Numbers
This is how we set numbers in US currency format.
<bean:write name="row" property='automaticLimitAmount' bundle="abc" formatKey="common.currency.format"/>
we specify this value in application resource bundle
common.currency.format=###,###,###,###.##
The dot 00 in output (the decimal values) is restricted by those 2 hash symbols after the dot in the formatkey that we had specified above.
OUTPUT: 1,000,000.00
<bean:write name="row" property='automaticLimitAmount' bundle="abc" formatKey="common.currency.format"/>
we specify this value in application resource bundle
common.currency.format=###,###,###,###.##
The dot 00 in output (the decimal values) is restricted by those 2 hash symbols after the dot in the formatkey that we had specified above.
OUTPUT: 1,000,000.00
0 Comments:
Post a Comment
<< Home