I recommend Tools 2.0 MathTool for maximum flexibility, but Velocity Engine 1.6+ supports static methods, putting the class itself in context. Thus, a quick and easy solution:
context.put ("Math", Math.class);
$ Math.ceil ($ Foo) $ Math.floor ($ bar)
source share