Difference between revisions of "D2G"

From QB64 Wiki
Jump to navigation Jump to search
imported>SMcNeill
(GL->1.000 and up)
imported>SMcNeill
(style guidelines)
 
Line 1: Line 1:
 
{{DISPLAYTITLE:_D2G}}
 
{{DISPLAYTITLE:_D2G}}
The '''_D2G''' function converts a DEGREE value into a GRADIENT value.  
+
The [[_D2G]] function converts a '''degree''' value into a '''gradient''' value.  
  
  
 
{{PageSyntax}}
 
{{PageSyntax}}
:: result = [[_D2G]](''num'')
+
: {{Parameter|result}} = [[_D2G]]({{Parameter|num}})
  
  
''Availability:''
+
==Availability==
* Version 1.000 and up.
+
* '''Version 1.000 and up.'''
  
  
 +
{{PageExamples}}
 
''Example:'' Coverting Degrees into Gradient.
 
''Example:'' Coverting Degrees into Gradient.
 
{{CodeStart}}
 
{{CodeStart}}
Line 23: Line 24:
  
  
''See also:''
+
{{PageSeeAlso}}
 
* [[_D2R]]
 
* [[_D2R]]
 
* [[_G2D]], [[_G2R]]
 
* [[_G2D]], [[_G2R]]

Latest revision as of 14:10, 5 September 2017

The _D2G function converts a degree value into a gradient value.


Syntax

result = _D2G(num)


Availability

  • Version 1.000 and up.


Examples

Example: Coverting Degrees into Gradient.

INPUT "Give me an angle in Degrees ", D R = _D2G(D) PRINT "That angle in Gradient is "; R

Give me an angle in Degrees 60 That angle in Gradient is 66.66666


See also




Navigation:
Go to Keyword Reference - Alphabetical
Go to Keyword Reference - By usage
Go to Main WIKI Page