Simple question: Can I do the equivalent of Math.ceil and Math.floor in a Velocity template? From what I could find I would have to use MathTool, but that doesn’t seem to have what I want.
Simple question: Can I do the equivalent of Math.ceil and Math.floor in a Velocity
Share
I’d say you could work with
MathTool.roundToInt()and adding/subtracting 1, but it should also be possible to provide an object with your methods that might provide what you need.Also have a look at Velocity Tools 2.0 whose MathTool has methods floor() and ceil().