Module:PercentageCalculator/doc
From The Walkscape Walkthrough
This is the documentation page for Module:PercentageCalculator
Percentage calculator does one thing, and one thing only (for now). It takes in a fraction and calculates a percentage. That percentage is returned as a string with 2 digits after the decimal.
Functions can be invoked by calling them like the following:
{{#invoke:PercentageCalculator|main|1/2}}
In this example, the call is made to this Module, followed by the function named 'main', followed finally by the parameter 1/2.
p.main(frame)
Inputs
frame | A fraction in the form: X/Y |
---|
Outputs
string | A decimal in the form: xx.xx% |
---|