ToRadians (Float function): Difference between revisions

From m204wiki
Jump to navigation Jump to search
(Created page with "{{Template:Float:ToRadians subtitle}} The <var>ToRadians</var> <var>intrinsic</var> function converts a number represented in degrees to radians. ==Syntax...")
 
mNo edit summary
 
(3 intermediate revisions by 3 users not shown)
Line 1: Line 1:
{{Template:Float:ToRadians subtitle}}
{{Template:Float:ToRadians subtitle}}


The <var>ToRadians</var> <var>[[Intrinsic classes|intrinsic]]</var> function converts a number represented in degrees to radians.
The <var>ToRadians</var> [[Intrinsic classes|intrinsic]] function converts a number represented in degrees to radians.


==Syntax==
==Syntax==
{{Template:Float:ToRadians syntax}}
{{Template:Float:ToRadians syntax}}
===Syntax terms===
===Syntax terms===
<table class="syntaxTable">
<table class="syntaxTable">
<tr><th>%number</th>
<tr><th>%number</th>
<td>A variable to receive the converted radians value. </td></tr>
<td>A variable to receive the converted radians value. </td></tr>
<tr><th>float</th>
<tr><th>float</th>
<td>A <var>Float</var> degrees value.</td></tr>
<td>A <var>Float</var> degrees value.</td></tr>
Line 14: Line 16:


==Usage notes==
==Usage notes==
<ul><li><var>ToRadians</var> is available as of <var class="product">[[Sirius Mods|"Sirius Mods"]]</var> Version 7.8.</ul>
<ul>
<li><var>ToRadians</var> is available as of <var class="product">Sirius Mods</var> Version 7.8.
</ul>


==Examples==
==Examples==
<ol><li>The following displays <code>6.28318530717959</code>:
The following displays <code>6.28318530717959</code>:
<p class="code">[[PrintText statement|printText]] {360:toRadians}
<p class="code">[[PrintText statement|printText]] {360:toRadians}
</p>
</p>
</ol>


==See also==
==See also==
{{Template:Float:ToRadians footer}}
{{Template:Float:ToRadians footer}}

Latest revision as of 18:18, 2 November 2012

Convert a number in desgrees to radians (Float class)


The ToRadians intrinsic function converts a number represented in degrees to radians.

Syntax

%number = float:ToRadians

Syntax terms

%number A variable to receive the converted radians value.
float A Float degrees value.

Usage notes

  • ToRadians is available as of Sirius Mods Version 7.8.

Examples

The following displays 6.28318530717959:

printText {360:toRadians}

See also