Difference between revisions of "SHIP:Sail:toRadians"

From Serious Documentation
Jump to: navigation, search
(Created page with "__NOTOC__ {{SailFuncTableStart|}}<onlyinclude> |{{SailFunc|toRadians}}||{{DataType|Float}}||style="text-align:center;"|v5.1.0||Convert degrees to radians{{v5}}</onlyinclude> |...")
 
Line 38: Line 38:
 
|<code>{{SailFunc|toRadians}}(-45);</code> || -0.785398... ||
 
|<code>{{SailFunc|toRadians}}(-45);</code> || -0.785398... ||
 
|}
 
|}
 +
 +
[[Categories: Numeric Functions]]

Revision as of 14:47, 4 October 2016

Function Returns Introduced Description
toRadians Float v5.1.0 Convert degrees to radiansBadge SHIPv5.gif

See Also:

Prototype

Float toRadians(Float n);

Parameters/Return Value

Parameter Data Type Description
n Float the degrees angle to convert
Return Float the equivalent angle in radians

Detailed Description

The toRadians() function returns an angle in radians.

Examples

Example Result Notes
toRadians(180); 3.141592...
toRadians(-45); -0.785398...

Categories: Numeric Functions