
Template::Plugin::Math - Plugin interface to mathematical functions

Template::Plugin::Math - Plugin providing mathematical functions

[% USE Math %]
[% Math.sqrt(9) %]

The Math plugin provides numerous mathematical functions for use within templates.

Template::Plugin::Math makes available the following functions from the Perl core:
In addition, if the Math::Trig module can be loaded, the following functions are also available:
If the Math::TrulyRandom module is available, and you've got the time to wait, the truly_random_number method is available:
[% Math.truly_random_number %]

Andy Wardley <abw@wardley.org>
http://wardley.org/|http://wardley.org/

1.13, distributed as part of the Template Toolkit version 2.15, released on 26 May 2006.

Copyright (C) 1996-2006 Andy Wardley. All Rights Reserved. Copyright (C) 1998-2002 Canon Research Centre Europe Ltd.
This module is free software; you can redistribute it and/or modify it under the same terms as Perl itself.
