DEGREES()

Documentation

VoltDB Home » Documentation » Using VoltDB

DEGREES()

DEGREES() — Converts an angle in radians to degrees

Synopsis

DEGREES( angle-in-radians )

Description

The DEGREES() function converts a floating-point value representing an angle measured in radians to the equivalent angle measured in degrees.

Example

The following SELECT statement converts a column value stored in radians to degrees before returning it to the user.

SELECT test_number, distance, DEGREES(angle) as angle_in_degrees
   FROM tests ORDER BY test_number;