ToRadians (Float function): Difference between revisions
Jump to navigation
Jump to search
m (→Examples) |
mNo edit summary |
||
Line 1: | Line 1: | ||
{{Template:Float:ToRadians subtitle}} | {{Template:Float:ToRadians subtitle}} | ||
The <var>ToRadians</ | 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"> | <ul> | ||
<li><var>ToRadians</var> is available as of <var class="product">Sirius Mods</var> Version 7.8. | |||
</ul> | |||
==Examples== | ==Examples== |
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}