Perl Diver 2.31
Main Environment Variables Perl Default Values Perl Config - Summary Perl Config - Full Installed Modules List Directory uptime Docs

Module Documentation
Details and documentation about a specific module, including version and documentation (if available). Note that while links to perldoc.com and search.cpan.org are provided, the module may be part of a larger distribution. If you reach a File Not Found page on either site, please try the parent module.

Template::Plugin::Math

Name Template::Plugin::Math
Version 1.16
Located at /usr/lib64/perl5/vendor_perl
File /usr/lib64/perl5/vendor_perl/Template/Plugin/Math.pm
Is Core No
Search CPAN for this module Template::Plugin::Math
Documentation Template::Plugin::Math
Module Details Template::Plugin::Math

NAME

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


SYNOPSIS

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


DESCRIPTION

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


METHODS

Template::Plugin::Math makes available the following functions from the Perl core:

abs
atan2
cos
exp
hex
int
log
oct
rand
sin
sqrt
srand

In addition, if the the Math::Trig manpage module can be loaded, the following functions are also available:

pi
tan
csc
cosec
sec
cot
cotan
asin
acos
atan
acsc
acosec
asec
acot
acotan
sinh
cosh
tanh
csch
cosech
sech
coth
cotanh
asinh
acosh
atanh
acsch
acosech
asech
acoth
acotanh
rad2deg
rad2grad
deg2rad
deg2grad
grad2rad
grad2deg

If the the Math::TrulyRandom manpage module is available, and you've got the time to wait, the truly_random_number method is available:

    [% Math.truly_random_number %]


AUTHOR

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


COPYRIGHT

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

the Template::Plugin manpage

Perl Diver brought to you by ScriptSolutions.com © 1997- 2024