**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**

- The trig mode affects the following trigonometric functions: SIN, COS, TAN, and ATAN, as well as any other functions that may be derived from these.
- In the current version, each thread cannot have its own trig mode. Only one mode can be set across all threads

**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
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**

- The redesigned 2.9 no longer had a built-in routine for changing the trig mode. This feature was re-introduced in version 2.96.