DEGREES (NoSQL query)

APPLIES TO: NoSQL

Returns the corresponding angle in degrees for an angle specified in radians.

Syntax

DEGREES(<numeric_expr>)  

Arguments

Description
numeric_expr A numeric expression.

Return types

Returns a numeric expression.

Examples

The following example returns the degrees for various radian values.

SELECT VALUE {
    radiansHalfPiToDegrees: DEGREES(1.5707963267948966),
    radiansPiToDegrees: DEGREES(3.141592653589793),
    radiansOneAndHalfPiToDegrees: DEGREES(4.71238898038469),
    radiansDoublePiToDegrees: DEGREES(6.283185307179586)
}
[
  {
    "radiansHalfPiToDegrees": 90,
    "radiansPiToDegrees": 180,
    "radiansOneAndHalfPiToDegrees": 270,
    "radiansDoublePiToDegrees": 360
  }
]

Remarks

  • This function doesn't use the index.