Template Toolkit ModulesTemplate::Plugin::Math |
[ Tutorial ][ Manual ][ Modules ][ Library ][ Tools ][ FAQ ][ Release ] <-[ Template::Plugin::Iterator ][ Template::Plugin::Pod ]-> |
SYNOPSIS |
[ Index ][ Modules ][ Top ] |
[% USE Math %] [% Math.sqrt(9) %] |
DESCRIPTION |
[ Index ][ Modules ][ Top ] |
The Math plugin provides numerous mathematical functions for use within templates. |
METHODS |
[ Index ][ Modules ][ Top ] |
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 [% Math.truly_random_number %] |
AUTHOR |
[ Index ][ Modules ][ Top ] |
Andy Wardley <abw@wardley.org> |
VERSION |
[ Index ][ Modules ][ Top ] |
1.16, distributed as part of the Template Toolkit version 2.19, released on 27 April 2007. |
COPYRIGHT |
[ Index ][ Modules ][ Top ] |
Copyright (C) 1996-2007 Andy Wardley. All Rights Reserved. This module is free software; you can redistribute it and/or modify it under the same terms as Perl itself. |
SEE ALSO |
[ Index ][ Modules ][ Top ] |