{"Entry":{"collection":"func","key":"sign","name":"sign","aliases":[],"metadata":{"changed_in":["7.3"],"changes":[{"descriptions_changed":false,"doc_overhaul":false,"from":"7.1","group_changed":null,"signatures":{"added":[],"removed":[]},"status":"added","to":"7.2"},{"descriptions_changed":false,"doc_overhaul":false,"from":"7.2","group_changed":null,"signatures":{"added":["sign ( dp or numeric ) → (same as input)"],"removed":["sign ( numeric ) → numeric"]},"status":"changed","to":"7.3"},{"descriptions_changed":false,"doc_overhaul":true,"from":"12","group_changed":null,"signatures":{"added":[],"removed":[]},"status":"changed","to":"13"}],"content_hash":"5a26925f2e768ce356d214b5435277bb1fa5732a8583fcf54e13347d9e7e55c8","derived_content_hash":"2b61eb50355b755b9b1517f6d8ad9b81bbdc126d368bc92ab8b129061d135883","documentation_refresh":{"batch":"20261113","original_source_rev":"wiki-repair-20261023:d1fe6223c9921a8f2b4eecbd2dcc08e3f6e754435076c8bceef2e7838b1618d1","versions":{"14":"14.25","15":"15.20","16":"16.16","17":"17.12","18":"18.7","19":"19rc2"}},"first_version":"7.2","group":"math","group_label":"Mathematical Functions And Operators","groups":["math"],"imported_at":"2026-09-27T17:57:28.263638+08:00","last_version":"20","name":"sign","name_key":"sign","position":2045,"present_in":["7.2","7.3","7.4","8.0","8.1","8.2","8.3","8.4","9.0","9.1","9.2","9.3","9.4","9.5","9.6","10","11","12","13","14","15","16","17","18","19","20"],"repair_provenance":{"original_source_revision":"wiki-repair-20261023:6f856e2c1d19d5d9306a6022efe5eae9bc224d860447e7482c8c856b89343905","receipt_sha256":"558001816f9fbafaad2d6efb695c724c7e583481793f109d7b0bbda6c31e9c35","repair":"wiki-repair-20261023"},"signature":"sign ( numeric ) → numeric","signature_count":2,"slug":"sign","source_rev":"wiki-repair-20261023:d1fe6223c9921a8f2b4eecbd2dcc08e3f6e754435076c8bceef2e7838b1618d1","summary":"Sign of the argument (-1, 0, or +1)","summary_zh":""}},"Definition":{"Collection":"func","Key":"sign","SourceDatabase":"center","Version":"18","SourceTable":"func","SourceKey":"sign","SourceRevision":"wiki-repair-20261023:d1fe6223c9921a8f2b4eecbd2dcc08e3f6e754435076c8bceef2e7838b1618d1","Facts":{"description":"Sign of the argument (-1, 0, or +1)","description_html":"Sign of the argument (-1, 0, or +1)","description_zh":"参数的符号（-1、0 或 +1）","description_zh_html":"参数的符号（-1、0 或 +1）","doc":{"anchor":"FUNCTIONS-MATH-FUNC-TABLE","file":"functions-math.html","sha256":"80bdcd3a2c7112aadf400e832cc7c8ee55e389d9b3c12e767c3fbb2b3364ef7b","slug":"18"},"documentation_revision":{"inputs":[{"file":"functions-math.html","kind":"same-version-reviewed-manual","locale":"en","sha256":"80bdcd3a2c7112aadf400e832cc7c8ee55e389d9b3c12e767c3fbb2b3364ef7b","version":"18.7"},{"file":"functions-math.html","kind":"same-version-reviewed-manual","locale":"zh-Hans","sha256":"b48c7e1d8abf0f030ad0ef2aa1403db7015a96af265d49a15eaa2f1945a13a5f","version":"18.7"}],"release":"18.7","runtime_remeasured":false,"source_revision":"pgdoc:b9f0e7232f60f380d642ac9b99226606c254b552"},"group":"math","group_label":"数学函数和操作符","lang":"en","layout":"table-new","pages":["functions-math.html"],"prose_only":false,"signatures":[{"description":"Sign of the argument (-1, 0, or +1)","description_html":"Sign of the argument (-1, 0, or +1)","description_zh":"参数的符号（-1、0 或 +1）","description_zh_html":"参数的符号（-1、0 或 +1）","examples":[{"expr":"sign(-8.4)","result":"-1"}],"html":"\u003ccode class=\"function\"\u003esign\u003c/code\u003e ( \u003ccode class=\"type\"\u003enumeric\u003c/code\u003e ) → \u003ccode class=\"returnvalue\"\u003enumeric\u003c/code\u003e","returns":"numeric","text":"sign ( numeric ) → numeric","zh_from":"same-version-manual"},{"description":"Sign of the argument (-1, 0, or +1)","description_html":"Sign of the argument (-1, 0, or +1)","description_zh":"参数的符号（-1、0 或 +1）","description_zh_html":"参数的符号（-1、0 或 +1）","examples":[{"expr":"sign(-8.4)","result":"-1"}],"html":"\u003ccode class=\"function\"\u003esign\u003c/code\u003e ( \u003ccode class=\"type\"\u003edouble precision\u003c/code\u003e ) → \u003ccode class=\"returnvalue\"\u003edouble precision\u003c/code\u003e","returns":"double precision","text":"sign ( double precision ) → double precision","zh_from":"same-version-manual"}],"translation_provenance":{"inputs":[{"kind":"current-pgdoc-translation","path":"/Users/vonng/pgsty/pgdoc/zh/18/html/functions-math.html","sha256":"b5f393c537ea29401867ea8b97292650ee67b0dd9e8cde535aae77bc594b3736"}],"kind":"same-version-pgdoc","locale":"zh-Hans","source_revision":"b1b500221dbe5437cfca004d6b04d3f6e422765d","version":"18"},"zh_from":"same-version-manual"},"ManualEvidence":{"doc":{"anchor":"FUNCTIONS-MATH-FUNC-TABLE","file":"functions-math.html","sha256":"80bdcd3a2c7112aadf400e832cc7c8ee55e389d9b3c12e767c3fbb2b3364ef7b","slug":"18"}},"MeasuredEvidence":{}},"Text":{"Collection":"func","Key":"sign","SourceDatabase":"center","Version":"18","Locale":"en","Title":"sign","Summary":"Sign of the argument (-1, 0, or +1)","BodyHTML":"Sign of the argument (-1, 0, or +1)","SourceRevision":"wiki-repair-20261023:d1fe6223c9921a8f2b4eecbd2dcc08e3f6e754435076c8bceef2e7838b1618d1","ContentHash":"cb9ead649112caeeb91ad4afd871a692ddd968fed6409b7fc229d5d09e7b89b4","Payload":{"description":"Sign of the argument (-1, 0, or +1)","description_html":"Sign of the argument (-1, 0, or +1)","signatures":[{"description":"Sign of the argument (-1, 0, or +1)","description_html":"Sign of the argument (-1, 0, or +1)","description_zh":"参数的符号（-1、0 或 +1）","description_zh_html":"参数的符号（-1、0 或 +1）","examples":[{"expr":"sign(-8.4)","result":"-1"}],"html":"\u003ccode class=\"function\"\u003esign\u003c/code\u003e ( \u003ccode class=\"type\"\u003enumeric\u003c/code\u003e ) → \u003ccode class=\"returnvalue\"\u003enumeric\u003c/code\u003e","returns":"numeric","text":"sign ( numeric ) → numeric","zh_from":"same-version-manual"},{"description":"Sign of the argument (-1, 0, or +1)","description_html":"Sign of the argument (-1, 0, or +1)","description_zh":"参数的符号（-1、0 或 +1）","description_zh_html":"参数的符号（-1、0 或 +1）","examples":[{"expr":"sign(-8.4)","result":"-1"}],"html":"\u003ccode class=\"function\"\u003esign\u003c/code\u003e ( \u003ccode class=\"type\"\u003edouble precision\u003c/code\u003e ) → \u003ccode class=\"returnvalue\"\u003edouble precision\u003c/code\u003e","returns":"double precision","text":"sign ( double precision ) → double precision","zh_from":"same-version-manual"}]}},"RequestedLocale":"en","Fallback":false,"Versions":["10","11","12","13","14","15","16","17","18","19","20","7.2","7.3","7.4","8.0","8.1","8.2","8.3","8.4","9.0","9.1","9.2","9.3","9.4","9.5","9.6"],"Locales":["en","zh-Hans"],"Signatures":[{"Version":"18","Ordinal":0,"Hash":"82d83ae63e216ce3bde7a9f3ead571675e99b0ff90dc29e6e39950da81b8b2b5","Text":"sign ( numeric ) → numeric","Returns":"numeric","Payload":{"description":"Sign of the argument (-1, 0, or +1)","description_html":"Sign of the argument (-1, 0, or +1)","description_zh":"参数的符号（-1、0 或 +1）","description_zh_html":"参数的符号（-1、0 或 +1）","examples":[{"expr":"sign(-8.4)","result":"-1"}],"html":"\u003ccode class=\"function\"\u003esign\u003c/code\u003e ( \u003ccode class=\"type\"\u003enumeric\u003c/code\u003e ) → \u003ccode class=\"returnvalue\"\u003enumeric\u003c/code\u003e","returns":"numeric","text":"sign ( numeric ) → numeric","zh_from":"same-version-manual"}},{"Version":"18","Ordinal":1,"Hash":"966057b254204eae5e46639126e36fb80bdb8e2fc0902118374d77c6f0d9f97e","Text":"sign ( double precision ) → double precision","Returns":"double precision","Payload":{"description":"Sign of the argument (-1, 0, or +1)","description_html":"Sign of the argument (-1, 0, or +1)","description_zh":"参数的符号（-1、0 或 +1）","description_zh_html":"参数的符号（-1、0 或 +1）","examples":[{"expr":"sign(-8.4)","result":"-1"}],"html":"\u003ccode class=\"function\"\u003esign\u003c/code\u003e ( \u003ccode class=\"type\"\u003edouble precision\u003c/code\u003e ) → \u003ccode class=\"returnvalue\"\u003edouble precision\u003c/code\u003e","returns":"double precision","text":"sign ( double precision ) → double precision","zh_from":"same-version-manual"}}],"Spellings":null,"SQLState":null,"Evidence":null}
