Difference between revisions of "rad"

From Bohemia Interactive Community
Jump to navigation Jump to search
(format)
m
 
(10 intermediate revisions by 3 users not shown)
Line 1: Line 1:
{{Command|= Comments
+
{{Command|Comments=
 
____________________________________________________________________________________________
 
____________________________________________________________________________________________
  
| ofp |= Game name
+
| ofp |Game name=
  
|1.00|= Game version
+
|1.00|Game version=
 +
 
 +
|gr1 = Math - Geometry |GROUP1=
 
____________________________________________________________________________________________
 
____________________________________________________________________________________________
  
| Converts given value in degrees to radians. 1 radian equals 180 degrees divided by [[pi]]. |= Description
+
| Converts given value in degrees to radians. 1 radian equals 180 degrees divided by [[pi]]. |DESCRIPTION=
 
____________________________________________________________________________________________
 
____________________________________________________________________________________________
  
| '''rad''' value |= Syntax
+
| '''rad''' value |SYNTAX=
  
 
|p1= value: [[Number]] - degrees  
 
|p1= value: [[Number]] - degrees  
  
| [[Number]] - radians |= Return value
+
| [[Number]] - radians |RETURNVALUE=
 
____________________________________________________________________________________________
 
____________________________________________________________________________________________
 
   
 
   
|x1= <code>_radians = [[rad]] 180; // Returns 3.1415... => [[pi]]</code> |= Example 1
+
|x1= <code>_radians = [[rad]] 180;{{cc|Returns 3.1415 ([[pi]])}}</code> |EXAMPLE1=
 
____________________________________________________________________________________________
 
____________________________________________________________________________________________
  
| [[Math Commands]], [[deg]] |= See also
+
| [[pi]], [[deg]] |SEEALSO=
  
 
}}
 
}}
Line 36: Line 38:
 
[[Category:Scripting Commands OFP 1.96|RAD]]
 
[[Category:Scripting Commands OFP 1.96|RAD]]
 
[[Category:Scripting Commands OFP 1.46|RAD]]
 
[[Category:Scripting Commands OFP 1.46|RAD]]
[[Category:Scripting Commands ArmA|RAD]]
+
[[Category:Scripting Commands Armed Assault|RAD]]
[[Category:Command_Group:_Math|{{uc:{{PAGENAME}}}}]]
+
[[Category:Scripting Commands Arma 2|{{uc:{{PAGENAME}}}}]]
[[Category:Scripting Commands ArmA2|{{uc:{{PAGENAME}}}}]]
 
 
[[Category:Scripting Commands Arma 3|{{uc:{{PAGENAME}}}}]]
 
[[Category:Scripting Commands Arma 3|{{uc:{{PAGENAME}}}}]]
[[Category:Scripting_Commands_Take_On_Helicopters|{{uc:{{PAGENAME}}}}]]
+
[[Category:Scripting Commands Take On Helicopters|{{uc:{{PAGENAME}}}}]]

Latest revision as of 18:12, 29 September 2020

Introduced with Operation Flashpoint version 1.001.00
Hover & click on the images for descriptions

Description

Description:
Converts given value in degrees to radians. 1 radian equals 180 degrees divided by pi.

Syntax

Syntax:
rad value
Parameters:
value: Number - degrees
Return Value:
Number - radians

Examples

Example 1:
_radians = rad 180;// Returns 3.1415 (pi)

Additional Information

See also:
pideg
Groups:
Math - Geometry

Notes

i
Only post proven facts here. Report bugs on the Feedback Tracker and discuss on the Arma Discord or on the Forums.

Notes

Bottom Section