Skip to content

COS

Return the cosine value of an input radian value.

COS(number)

The return type is a DOUBLE PRECISION number.

For example:

premdb=# select cos(1) from sys.const;
      cos        
------------------
 0.54030230586814
(1 row)
premdb=# select cos(seasonid) from season;
        cos         
---------------------
   0.54030230586814
  -0.416146836547142
  -0.989992496600445
  -0.653643620863612
   0.283662185463226
   0.960170286650366
...

Parent topic:Mathematical Functions