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 )

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:

try
{
    Value result = await client.Query(
        Degrees(0.5)
    );

    Console.WriteLine(result);
}
catch (Exception e)
{
    Console.WriteLine($"ERROR: {e.Message}");
}
DoubleV(28.64788975654116)
result, err := client.Query(
	f.Degrees(0.5))

if err != nil {
	fmt.Fprintln(os.Stderr, err)
} else {
	fmt.Println(result)
}
28.64788975654116
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
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!