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

Attachment: signature.asc
Description: OpenPGP digital signature

Reply via email to