acos
Returns the arccosine of a number, as an angle in radians.
Keyboard Maestro: ACOS
Details #
acos(x) takes exactly one argument, a number from -1 to 1, and returns an angle in radians between 0 and 3.14159.
Parameters #
Takes 1 argument.
{{ acos(text) }}
Examples #
acos(1)→
0round(acos(0) * 180 / 3.14159265, 2)→
90Gotchas #
Calling it with no argument or two arguments is an error:
acos() takes 1 argument, got 2.Anything that isn't a number is an error:
acos() needs a number, got text. Numeric text such as "0.5" is accepted.A number outside -1 to 1 has no arccosine; the step stops with
acos() has no result for that number.