开发者

JSTL Format Number in million

开发者 https://www.devze.com 2023-04-09 22:38 出处:网络
I have a number like, 48371000000 i need to display it like 48371. Using JST开发者_开发问答L, I tried like

I have a number like, 48371000000 i need to display it like 48371.

Using JST开发者_开发问答L, I tried like

<fmt:formatNumber var="salesFormat" type="currency" currencyCode="USD" value="48371000000"/>
Output: $48,371,000,000.00  

Do I need to use any pattern?

Please Help, Thank in advance...


Ok, I get an alternative like,

Firstly I am getting the value by dividing it by 1000000.

Thanks guys.

0

精彩评论

暂无评论...
验证码 换一张
取 消