Degrees

Copied!
( value )

Description

The Degrees function converts a specified number from radians to degrees. The argument is an angle measured in radians, which is converted to an approximate angle measured in degrees.

Parameters

Argument Type Definition and Requirements

value

Number

Take the value specified in radians.

Returns

A number which is the given angle measured in degrees.

Examples

The query below takes 0.5 radians and converts it to approximately 28.6 degrees.

Copied!
client.query(
  q.(0.5)
)
.then((ret) => console.log(ret))
28.64788975654116

Is this article helpful? 

Tell Fauna how the article can be improved:
Visit Fauna's forums or email docs@fauna.com

Thank you for your feedback!