DEGREES Function - SQL Server to PostgreSQL Migration

SQL Server and PostgreSQL provide DEGREES function that converts radians to degrees.

SQL Server:

  -- Get degrees
  SELECT DEGREES(1.7);
  # 97.402825172239943186

PostgreSQL:

  -- Get degrees
  SELECT DEGREES(1.7);
  # 97.40282517223994

For more information, see SQL Server to PostgreSQL Migration.