Template::Plugin::Math(3pm) - phpMan

Command: man perldoc info search(apropos)  


Template::Plugin::Math(3)      User Contributed Perl Documentation      Template::Plugin::Math(3)



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 Math::Trig 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 Math::TrulyRandom 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 AT 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
       Template::Plugin



perl v5.16.3                                2011-12-20                  Template::Plugin::Math(3)

Generated by $Id: phpMan.php,v 4.55 2007/09/05 04:42:51 chedong Exp $ Author: Che Dong
On Apache
Under GNU General Public License
2024-04-20 00:24 @18.191.254.0 CrawledBy Mozilla/5.0 AppleWebKit/537.36 (KHTML, like Gecko; compatible; ClaudeBot/1.0; +claudebot@anthropic.com)
Valid XHTML 1.0!Valid CSS!