Difference between revisions of "Percent"
From NEC Retro
(Created page with "<includeonly>{{#vardefine:min|{{{min|0}}}}}{{#vardefine:max|{{{max|100}}}}}{{#vardefine:value|{{{value|0}}}}}{{#expr:({{#var:value}}-{{#var:min}})/({{#var:max}}-{{#var:min}})}...") |
|||
Line 1: | Line 1: | ||
− | <includeonly>{{#vardefine:min|{{{min|0}}}}}{{#vardefine:max|{{{max|100}}}}}{{#vardefine:value|{{{value|0}}}}}{{#expr:({{#var:value}}-{{#var:min}})/({{#var:max}}-{{#var:min}})}}</includeonly><noinclude> | + | <includeonly>{{#ifeq:{{{min|}}}|{{{max|}}}|0|{{#vardefine:min|{{{min|0}}}}}{{#vardefine:max|{{{max|100}}}}}{{#vardefine:value|{{{value|0}}}}}{{#expr:({{#var:value}}-{{#var:min}})/({{#var:max}}-{{#var:min}})}}}}</includeonly><noinclude> |
I don't know what to call this. -[[User:Black Squirrel|Black Squirrel]] ([[User talk:Black Squirrel|talk]]) 04:23, 24 February 2022 (EST) | I don't know what to call this. -[[User:Black Squirrel|Black Squirrel]] ([[User talk:Black Squirrel|talk]]) 04:23, 24 February 2022 (EST) | ||
− | <pre>{{ | + | <pre>{{Percent |
|min=10 | |min=10 | ||
|max=20 | |max=20 | ||
Line 9: | Line 9: | ||
}}</pre> | }}</pre> | ||
− | {{ | + | {{Percent |
|min=10 | |min=10 | ||
|max=20 | |max=20 |
Revision as of 06:52, 24 February 2022
I don't know what to call this. -Black Squirrel (talk) 04:23, 24 February 2022 (EST)
{{Percent |min=10 |max=20 |value=15 }}
0.5