Skip to content
This repository has been archived by the owner on Oct 13, 2021. It is now read-only.

pixelfear/Statamic-Math

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 

Repository files navigation

Math for Statamic

Perform basic arithmetic functions in your Statamic templates.
Taken from Bison

{{ math num1="5" num2="2" operator="*" }}

ie. 5*2, or 5 times 2.
Outputs: 10

You have the ability to use the *, /, +, and - operators.
It will always be calculated as num1 [operator] num2.

If you need to refine the decimal precision, you can add decimals="2" (adjust to what you need).

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published