Get your CodeRanch badge!*
The moose likes JSP and the fly likes Formatiing problem in EL Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » JSP
Bookmark "Formatiing problem in EL" Watch "Formatiing problem in EL" New topic
Author

Formatiing problem in EL

udit agarwal
Greenhorn

Joined: May 25, 2006
Posts: 9
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


Good Designer is alwasys a good programmer. Trying to improve designing skill...
Bear Bibeault
Author and ninkuma
Marshal

Joined: Jan 10, 2002
Posts: 60057
    
  65

Explore the JSTL fmt actions.


[Asking smart questions] [Bear's FrontMan] [About Bear] [Books by Bear]
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Formatiing problem in EL
 
Similar Threads
where to look for jsp and servlet specs?
EL expressions
EL is not enable by default in Tomcat 5.0
including webpage in jsp
how can I make two actions communicate with each other