1
1
Fork 0
mirror of https://github.com/QB64-Phoenix-Edition/QB64pe.git synced 2024-07-01 15:00:38 +00:00
QB64-PE/internal/help/_D2R.txt

35 lines
601 B
Plaintext
Raw Normal View History

2016-03-18 11:36:04 +00:00
{{DISPLAYTITLE:_D2R}}
2017-10-10 14:55:21 +00:00
The [[_D2R]] function converts a '''degree''' value into a '''radian''' value.
2016-03-18 11:36:04 +00:00
{{PageSyntax}}
2017-10-10 14:55:21 +00:00
:: {{Parameter|result}} = [[_D2R]]({{Parameter|num}})
2016-03-18 11:36:04 +00:00
==Availability==
* '''Version 1.000 and up.'''
2016-03-18 11:36:04 +00:00
2017-10-10 14:55:21 +00:00
{{PageExamples}}
2016-03-18 11:36:04 +00:00
''Example:'' Coverting Degrees into Radians.
{{CodeStart}}
2019-04-15 01:15:33 +00:00
INPUT "Give me an angle in Degrees ", D
2016-03-18 11:36:04 +00:00
R = _D2R(D)
2019-04-15 01:15:33 +00:00
PRINT "That angle in Radians is "; R
2016-03-18 11:36:04 +00:00
{{CodeEnd}}
{{OutputStart}}
Give me an angle in Degrees 60
That angle in Radians is 1.047198
{{OutputEnd}}
2017-10-10 14:55:21 +00:00
{{PageSeeAlso}}
2016-03-18 11:36:04 +00:00
* [[_D2G]], [[_D2R]]
* [[_G2D]], [[_G2R]]
* [[_R2D]], [[_R2G]]
2019-04-15 01:15:33 +00:00
{{PageNavigation}}
<