]> granicus.if.org Git - postgresql/commit
Add trigonometric functions that work in degrees.
authorTom Lane <tgl@sss.pgh.pa.us>
Fri, 22 Jan 2016 20:46:22 +0000 (15:46 -0500)
committerTom Lane <tgl@sss.pgh.pa.us>
Fri, 22 Jan 2016 20:46:22 +0000 (15:46 -0500)
commite1bd684a34c11139a1bf4e5200c3bbe59a0fbfad
tree821061660ece1adfe3fdffd2b15b7c352809f245
parentfd5200c3dca0bc725f5848eef7ffff538f4479ed
Add trigonometric functions that work in degrees.

The implementations go to some lengths to deliver exact results for values
where an exact result can be expected, such as sind(30) = 0.5 exactly.

Dean Rasheed, reviewed by Michael Paquier
doc/src/sgml/func.sgml
src/backend/utils/adt/float.c
src/include/catalog/catversion.h
src/include/catalog/pg_proc.h
src/include/utils/builtins.h
src/test/regress/expected/float8-exp-three-digits-win32.out
src/test/regress/expected/float8-small-is-zero.out
src/test/regress/expected/float8-small-is-zero_1.out
src/test/regress/expected/float8.out
src/test/regress/sql/float8.sql