ToDegrees (Float function): Difference between revisions

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


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


==Syntax==
==Syntax==
{{Template:Float:ToDegrees syntax}}
{{Template:Float:ToDegrees syntax}}
===Syntax terms===
===Syntax terms===
<table class="syntaxTable">
<table class="syntaxTable">
Line 14: Line 15:


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


==Examples==
==Examples==
<ol><li>The following displays <code>180</code>:
The following displays <code>180</code>:
<p class="code">[[PrintText statement|printText]] {$pi:toDegrees}
<p class="code">[[PrintText statement|printText]] {$pi:toDegrees}
</p>
</p>
</ol>


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

Latest revision as of 18:10, 2 November 2012

Convert a number in radians to degrees (Float class)


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

Syntax

%number = float:ToDegrees

Syntax terms

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

Usage notes

  • ToDegrees is available as of Sirius Mods Version 7.8.

Examples

The following displays 180:

printText {$pi:toDegrees}

See also