I have two numbers that I need to round to 4 decimal places in JSTL. One positive:
40.7615811 40.7616
and another negative:
-73.9940841 -73.9941
Both should be rounded to 4 decimal places, as in the second line of each example.
Is there a clean way to do this in JSTL or do I need to do this in a controller class or in a JSP script?
nickl source share