COS Function - SQL Server to PostgreSQL Migration

SQL Server and PostgreSQL provide COS function that returns the trigonometric cosine.

SQL Server:

  -- Get cosine
  SELECT COS(35.17);
  # -0.818224321457963

PostgreSQL:

  -- Get cosine
  SELECT COS(35.17);
  # -0.8182243214579626

For more information, see SQL Server to PostgreSQL Migration.