File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
A friendly place for programming greenhorns!
Big Moose Saloon
Register / Login
Format a int in a decimal
Joined: Jan 12, 2005
Jun 05, 2008 05:03:00
i have a integer for example 12345.
i have to render this value as 123,45
I have to use the
<bean:write name="ratingBean" property="importoCapitaleF" format="#,###.##"/>
but i cannot do it..
Someone can help me?
bye, <br />Marco
Author and ninkuma
Joined: Jan 10, 2002
Jun 05, 2008 08:47:00
Please be sure to ask Struts questions in the Struts forum. I have moved this post there for you.
Asking smart questions
Books by Bear
Joined: Feb 15, 2005
Jun 05, 2008 10:20:00
What do you mean by "I cannot do it"? What happens when you try the above code?
I agree. Here's the link:
subject: Format a int in a decimal
painful java.util.Date bug
converting String from UTF 8 to ascii format
Text file xls to Binary format xls in Java.
question on part 2 submission format
All times are in JavaRanch time: GMT-6 in summer, GMT-7 in winter
| Powered by
Copyright © 1998-2015