I have a code to calculate the cos number.
But the answer is obtained in RAD.
How can I make it so that the response is displayed in DEG?
currentInput = cos(currentInput)
var currentInput: Double
Example:
cos 45 = 0.52532198881 (RAD)
cos 45 = 0.70710678118 (DEG)