RADIANS()

Documentation

VoltDB Home » Documentation » Using VoltDB

RADIANS()

RADIANS() — Converts an angle in degrees to radians

Synopsis

RADIANS( angle-in-degrees )

Description

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

Example

The following INSERT statement converts input entered in degrees to radians before inserting the record into the database.

INSERT INTO tests (test_number, distance, angle)
   VALUES (?, ?, RADIANS(?) );