Win a copy of Functional Reactive Programming this week in the Other Languages forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Formatiing problem in EL

 
udit agarwal
Greenhorn
Posts: 9
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I divide a number with another in EL

say ${9.37/2} the it shows the result = 4.685

And if the first numer comes from a object which is float the result is = 4.684999942779541

Can i format it on JSP itself?

Thanks
 
Bear Bibeault
Author and ninkuma
Marshal
Pie
Posts: 65225
95
IntelliJ IDE Java jQuery Mac Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Explore the JSTL fmt actions.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic