Radians

Copied!
( value )

Description

The Radians function translates a specified number from degrees to radians. The argument is an angle measured in degrees, which is converted to the approximated angle measured in radians.

Parameters

Argument Type Definition and Requirements

value

Number

Take the value specified in degrees.

Returns

A number which is the given angle measured in radians.

Examples

The query in the following example returns the radians of 2 degrees:

Copied!
client.query(
  q.(2)
)
.then((ret) => console.log(ret))
0.0349065850398865

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!