Template:Sgn/doc

From MidsouthMakers - Memphis Area Hackerpace
Revision as of 17:53, 18 January 2010 by Admin (talk | contribs) (1 revision)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

This template evaluates its numeric parameter and returns its mathematical sign. If the parameter is empty or missing, it returns an empty string. Otherwise, the return value is 1 if the parameter is positive, 0 if it is null, -1 if negative.

Syntax:
{{Sgn/doc|value}}
Examples:
  • "{{Sgn/doc|100}}" = "

This template evaluates its numeric parameter and returns its mathematical sign. If the parameter is empty or missing, it returns an empty string. Otherwise, the return value is 1 if the parameter is positive, 0 if it is null, -1 if negative.

Syntax:
{{Sgn/doc|value}}
Examples:

nl:Sjabloon:Sgn ".

  • "{{Sgn/doc|0.1}}" = "

This template evaluates its numeric parameter and returns its mathematical sign. If the parameter is empty or missing, it returns an empty string. Otherwise, the return value is 1 if the parameter is positive, 0 if it is null, -1 if negative.

Syntax:
{{Sgn/doc|value}}
Examples:

nl:Sjabloon:Sgn ".

  • "{{Sgn/doc|1-1}}" = "

This template evaluates its numeric parameter and returns its mathematical sign. If the parameter is empty or missing, it returns an empty string. Otherwise, the return value is 1 if the parameter is positive, 0 if it is null, -1 if negative.

Syntax:
{{Sgn/doc|value}}
Examples:

nl:Sjabloon:Sgn ".

  • "{{Sgn/doc|-0.1}}" = "

This template evaluates its numeric parameter and returns its mathematical sign. If the parameter is empty or missing, it returns an empty string. Otherwise, the return value is 1 if the parameter is positive, 0 if it is null, -1 if negative.

Syntax:
{{Sgn/doc|value}}
Examples:

nl:Sjabloon:Sgn ".

  • "{{Sgn/doc|-100}}" = "

This template evaluates its numeric parameter and returns its mathematical sign. If the parameter is empty or missing, it returns an empty string. Otherwise, the return value is 1 if the parameter is positive, 0 if it is null, -1 if negative.

Syntax:
{{Sgn/doc|value}}
Examples:

nl:Sjabloon:Sgn ".