Difference between revisions of "rad"

From Bohemia Interactive Community
Jump to navigation Jump to search
m
m (example formatting)
Line 18: Line 18:
 
____________________________________________________________________________________________
 
____________________________________________________________________________________________
 
   
 
   
|x1= <code>_radians <nowiki>=</nowiki> '''rad''' 180</code> 
+
|x1= <code>_radians <nowiki>=</nowiki> '''rad''' 180;//Returns 3.1415... => [[pi]]</code> |= Example 1
Result is 3.1415 (eg [[pi]]|= Example 1
 
 
____________________________________________________________________________________________
 
____________________________________________________________________________________________
  

Revision as of 16:59, 20 December 2018

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

Description

Description:
Convert x from Degrees to Radians. 360 degrees is equal to 2 multiplied with pi.

Syntax

Syntax:
Number = rad x
Parameters:
x: Number
Return Value:
Number

Examples

Example 1:
_radians = rad 180;//Returns 3.1415... => pi

Additional Information

See also:
Math Commands

Notes

i
Only post proven facts here. Report bugs on the feedback tracker. Use the Talk page or the Forums for discussions.

Notes

Bottom Section