SHIP:Sail:neg

From Serious Documentation
Revision as of 16:24, 29 September 2016 by CarltonHeyer (talk | contribs) (Created page with "__NOTOC__ {{SailFuncTableStart|}}<onlyinclude> |{{SailFunc|neg}}||{{DataType|Integer}}/{{DataType|Float}}||style="text-align:center;"|v5.1.0||Return the negative of the given...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search
Function Returns Introduced Description
neg Integer/Float v5.1.0 Return the negative of the given numberBadge SHIPv5.gif

See Also:

Prototype

Float neg(Integer n);

Parameters/Return Value

Parameter Data Type Description
n Integer/Float the number to negate
Return Float the result of -(n)

Detailed Description

The exp() function returns the given number * -1.

Examples

Example Result Notes
neg(3.14); 3.14
neg(82); 82.0