As this is a suggestion from my using JSTL I thought it'd be better here.

Has the following been considered:

<fmt:formatNumber value="424.233" maxFractionDigits="-1"/>

which outputs 420

Doesn't seem to work for me [I had wild hopes] and it seems surprisingly
hard to find a standard way to do this. I can't fathom a way to do it
using NumberFormat, and there's nothing leaping out in java.lang.Math.
Both would be a pain anyway as I want it as a formatting attribute in JSP.

Am I missing something obvious?

Hen


--
To unsubscribe, e-mail:   <mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>

Reply via email to