Function reference · Math

degrees

Converts radians to degrees, exactly.

It multiplies by 180/pi and keeps the result exact.

Notation

degrees(x)

Write it in an expression: nerdamer('degrees(pi)'), or in the Playground.

nerdamer.degrees

nerdamer.degrees(x: ExpressionInput): Expression

A method on the default import. Arguments can be strings, as in Notation.

Examples

pi is 180 degrees.

degrees(pi)
// → 180
Open in Playground

2pi/3 is 120 degrees.

degrees(2*pi/3)
// → 120
Open in Playground

A symbolic angle.

degrees(x)
// → 180*x*pi^-1
Open in Playground

← Back to Function reference