This week's book giveaway is in the OCMJEA forum.
We're giving away four copies of OCM Java EE 6 Enterprise Architect Exam Guide and have Paul Allen & Joseph Bambara on-line!
See this thread for details.
The moose likes JSP and the fly likes Making precisions in calculations with JSTL Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of OCM Java EE 6 Enterprise Architect Exam Guide this week in the OCMJEA forum!
JavaRanch » Java Forums » Java » JSP
Bookmark "Making precisions in calculations with JSTL" Watch "Making precisions in calculations with JSTL" New topic
Author

Making precisions in calculations with JSTL

Timothy Sam
Ranch Hand

Joined: Sep 18, 2005
Posts: 746
Hi guys! I'm having rounding off issues. Are there any equivalent of the Math class methods ceil, round and floor? It seems that fmt:number only outputs to a String. What if I still have to use it in my calculations? Last time I tried, fmt:number doesn't even accept an expressions ${} as a value! Any ideas guys?

Here is my code. The variables factor and percentage needs to be rounded off to the nearest integer during calculation.



SCJP 1.5
http://devpinoy.org/blogs/lamia/ - http://everypesocounts.com/
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Making precisions in calculations with JSTL