You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@velocity.apache.org by "parthiban.nt" <pa...@gmail.com> on 2008/08/07 08:44:12 UTC
Float point number Display
I have a output float No : 125.0
I want to Display it as 125
Runs under velocity1.5(dev)
Tried mathUtil classes - but no Progress
Suggest me with solution.
--
View this message in context: http://www.nabble.com/Float-point-number-Display-tp18864973p18864973.html
Sent from the Velocity - Dev mailing list archive at Nabble.com.
Re: Float point number Display
Posted by Christopher Schultz <ch...@christopherschultz.net>.
Parthiban,
parthiban.nt wrote:
> I have a output float No : 125.0
> I want to Display it as 125
> Runs under velocity1.5(dev)
> Tried mathUtil classes - but no Progress
What did you try? Any of the following methods in MathTool will work:
MathTool.toInteger
MathTool.floor
MathTool.round (depends on the value)
Documentation for the MathTool can be found here:
http://velocity.apache.org/tools/releases/1.4/generic/MathTool.html
-chris