The standard use of the function cos is used as radians. Adding a degree symbol will give you the result you’re looking for:
Cos (30) - Radians
Cos (30°) - Degrees
You can find the degree symbol by tapping the trigonometry functions button (sin, cos, tan, cot) on the top left of the calculator keyboard.