Template:Negative

From Legends of Hyrule
Revision as of 03:01, 30 January 2020 by Guy (talk | contribs) (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...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigationJump to search

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".