ucGetTrigMode
ucSetTrigMode
See Also: Functions available to end-users
Modifies or retrieves the mode used for trigonometric routines.
ucGetTrigMode()
- or -
ucSetTrigMode mode
Parameter
mode
The mode argument can be one of the following three constants: uc_Radians (which is the default), uc_Degrees, or uc_Grad.
Remarks
Visual Basic
ucDefine
"Const: pi = atan(1)
* 4" ' 3.14159... ' Note: The default mode used for the first two
lines below is radians Print ucEval("sin(90)")
' returns 0.89399... Print ucEval("sin(pi/2)")
' returns 1 ucSetTrigMode uc_Degrees Print ucEval("sin(90)") ' returns 1 Print ucEval("sin(pi/2)") ' returns 0.027412... |
New or enhanced in version 3.0
· Nothing related to this topic.
· See What's New in version 3.0.
New or enhanced in version 2.96