FQL v4 will be decommissioned on June 30, 2025. Ensure that you complete your migration from FQL v4 to FQL v10 by that date.

Fauna accounts created after August 21, 2024 must use FQL v10. These accounts will not be able to run FQL v4 queries or access the v4 Dashboard.

For more details, see the v4 EOL announcement and migration guide. Contact support@fauna.com with any questions.

Degrees

This reference topic applies to FQL v4. Go to this page for the latest FQL v10 reference topics.

Degrees( value )
degrees( value )
Degrees( value )
Degrees( value )
Degrees( value )
Degrees( value )

Description

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

Parameters

Parameter Type Definition and Requirements

value

Number

A Number representing an angle in radians that should be converted to degrees.

Returns

A number which is the given angle measured in degrees.

Examples

The following query takes 0.5 radians and converts it to degrees:

client.query(
  q.Degrees(0.5)
)
.then((ret) => console.log(ret))
.catch((err) => console.error(
  'Error: [%s] %s: %s',
  err.name,
  err.message,
  err.errors()[0].description,
))
28.64788975654116
result = client.query(
  q.degrees(0.5)
)
print(result)
28.64788975654116
result, err := client.Query(
	f.Degrees(0.5))

if err != nil {
	fmt.Fprintln(os.Stderr, err)
} else {
	fmt.Println(result)
}
28.64788975654116
try
{
    Value result = await client.Query(
        Degrees(0.5)
    );

    Console.WriteLine(result);
}
catch (Exception e)
{
    Console.WriteLine($"ERROR: {e.Message}");
}
DoubleV(28.64788975654116)
System.out.println(
    client.query(
        Degrees(Value(0.5))
    ).get());
28.64788975654116
Degrees(0.5)
28.64788975654116
Query metrics:
  •    bytesIn:  15

  •   bytesOut:  30

  • computeOps:   1

  •    readOps:   0

  •   writeOps:   0

  •  readBytes:   0

  • writeBytes:   0

  •  queryTime: 1ms

  •    retries:   0

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!