SHIP:Sail:pow

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

See Also:

Prototype

Float pow(Float b, Float p);

Parameters/Return Value

Parameter Data Type Description
b Integer the base to be raised to the power of
p Integer the power to raise the base
Return Float the result of b^p

Detailed Description

The pow() function returns the result of b to the power of p.

Examples

Example Result Notes
pow(2, 5); 32.0...
pow(9, 0.5f); 3.0...
pow(125, 0.333333333f); 5.0...
pow(-7, 1/2); nan