إشعار
يتطلب الوصول إلى هذه الصفحة تخويلاً. يمكنك محاولة تسجيل الدخول أو تغيير الدلائل.
يتطلب الوصول إلى هذه الصفحة تخويلاً. يمكنك محاولة تغيير الدلائل.
The DEGREES function calculates 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
This section contains examples of how to use this query language construct.
Convert radians to degrees
In this example, the DEGREES function is used to convert various radian values to degrees.
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
- STATIC-NOTIFY-NO-INDEX-USAGE