1
1
Fork 0
mirror of https://github.com/QB64Official/qb64.git synced 2024-07-03 08:51:22 +00:00
qb64/internal/help/_D2G.txt

34 lines
592 B
Plaintext
Raw Normal View History

2016-03-18 11:36:04 +00:00
{{DISPLAYTITLE:_D2G}}
2017-10-10 14:55:21 +00:00
The [[_D2G]] function converts a '''degree''' value into a '''gradient''' value.
2016-03-18 11:36:04 +00:00
{{PageSyntax}}
2017-10-10 14:55:21 +00:00
: {{Parameter|result}} = [[_D2G]]({{Parameter|num}})
2016-03-18 11:36:04 +00:00
2021-04-25 22:40:25 +00:00
{{PageAvailability}}
* 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 Gradient.
{{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 = _D2G(D)
2019-04-15 01:15:33 +00:00
PRINT "That angle in Gradient is "; R
2016-03-18 11:36:04 +00:00
{{CodeEnd}}
{{OutputStart}}
Give me an angle in Degrees 60
That angle in Gradient is 66.66666
{{OutputEnd}}
2017-10-10 14:55:21 +00:00
{{PageSeeAlso}}
2016-03-18 11:36:04 +00:00
* [[_D2R]]
* [[_G2D]], [[_G2R]]
* [[_R2D]], [[_R2G]]
2019-04-15 01:15:33 +00:00
{{PageNavigation}}