ZBasic System Library
213
ZX Microcontroller Family
DegToRad() facilitate the conversion between the two systems.
Depending on optimization settings, if the parameter supplied to this function is known to be constant at
compile time, the compiler will convert the value at compile time. Otherwise, code is generated to
perform the conversion (multiplication by a conversion factor) at run time.
Example
Dim f as Single
Dim theta as Single ' the angle in degrees
theta = RadToDeg(Asin(f))
Compatibility
This function is not available in BasicX compatibility mode.
See Also