decimal « JSTL « JSP-Servlet Q&A

1. How do I round a positive and negative decimal in JSTL?

I have two numbers that I need to round to 4 decimal places in JSTL. One is positive:

and the other is negative:
Both need to be rounded to 4 decimal places, as ...

2. Decimal number display using JSTL