Templat...n::Math(3)
๐ NAME ๐
okay bestie, welcome to Template::Plugin::Math(3) โ the header/footer smoosh it into Templat...n::Math(3) because truncation ate, but itโs still her ๐
. This page lives under User Contributed Perl Documentation, and the plugin is literally the plugin providing mathematical functions. No cap. ๐
โจ SYNOPSIS โจ
Like, the whole vibe check:
[% USE Math %]
[% Math.sqrt(9) %]
๐ธ DESCRIPTION ๐ธ
The Math plugin provides numerous mathematical functions for use within templates. Thatโs the tea: you want math inside a template, this plugin hands it over. ๐งฎโจ
๐ METHODS ๐
Template::Plugin::Math makes available the following functions from the Perl core, in this exact order:
absatan2cosexphexintlogoctrandsinsqrtsrand
And if the Math::Trig module can be loaded, these extra functions are also available โ same order, bestie:
pitancsccosecseccotcotanasinacosatanacscacosecasecacotacotansinhcoshtanhcschcosechsechcothcotanhasinhacoshatanhacschacosechasechacothacotanhrad2degrad2graddeg2raddeg2gradgrad2radgrad2deg
If the Math::TrulyRandom module is available โ and, like, 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/> โ iconic. ๐
๐ COPYRIGHT ๐
Copyright (C) 1996-2022 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. Slay, but legally. ๐
๐ SEE ALSO ๐
Template::Plugin โ go peek, iykyk. ๐ซถ
Byeee โ footer says perl v5.42.0, dated 2024-06-23. Mwah. ๐
๐ฆ where this page comes from
- opensuse-leap 16.0: perl-Template-Toolkit 3.102.0-bp160.1.13 ยท Artistic-1.0 OR GPL-1.0-or-later
- opensuse-leap 16.0: perl-Template-Toolkit 3.102.0-bp160.1.13 ยท Artistic-1.0 OR GPL-1.0-or-later
- opensuse-leap 16.0: perl-Template-Toolkit 3.102.0-bp160.1.13 ยท Artistic-1.0 OR GPL-1.0-or-later
- opensuse-leap 16.0: perl-Template-Toolkit 3.102.0-bp160.1.13 ยท Artistic-1.0 OR GPL-1.0-or-later
- ๐ girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms