Difference between revisions of "Template:Negative"
From Legends of Hyrule
Jump to navigationJump to search (Created page with "<includeonly>{{#ifexpr: 0 > {{{1|1}}}| {{#expr:({{{1|1}}} * -2) / 2}} | {{{1|1}}}}}</includeonly><noinclude> ==Usage== This template converts any negative number into a positi...") |
(No difference)
|
Latest revision as of 04:01, 30 January 2020
Usage
This template converts any negative number into a positive number of the opposite value, and leaves and positive number positive. Take the following examples.
{{Negative|-5}}
In the above example, the template will return "5".
{{Negative|10}}
In the above example, the template will return "10".
If no number is entered, the template defaults to "1".