MATHLIB Function
Return the sine of a number in degrees.
SIN(DEGREES_FV)
DEGREES_FV
A floating point value whose sine you want returned as degrees.
Description
Use this function to return the sine of the argument in degrees as a floating point value. To convert degrees to radians, multiply degrees by 0.0174532926.
Example
include mathlib.inc
float SineOfNinety
float Float1 is 2.3
integer IResult
key GetSineOf90 at 100 100
solid green box 160 30
move 80 15 black text center "Sine of 90"
action Floor is
copy FLOOR(Float1) to IResult
send "FLOOR( Float1 ) = " IResult "\n" to errorlog
response to start
action Floor
response to GetSineOf90
copy SIN(90) to SineOfNinety
send "The sine of 90 degrees is: " SineOfNinety "\n" to errorlog