Degrees

Not available in this language yet.
Degrees( value )
Degrees( value )
Degrees( value )
Not available in this language yet.
Degrees( 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.

Not available in this language yet.
Not available in this language yet.
System.out.println(
    client.query(
        Degrees(Value(0.5))
    ).get());
28.64788975654116
client.query(
  q.Degrees(0.5)
)
.then((ret) => console.log(ret))
28.64788975654116
Not available in this language yet.
println(Await.result(
  client.query(
    Degrees(0.5)
  ),
  5.seconds
))
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!