{"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","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"],"signature":"sign ( numeric ) → numeric","signature_count":2,"slug":"sign","source_rev":"b7bd9cda","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":"b7bd9cda","Facts":{"description":"Sign of the argument (-1, 0, or +1)","description_html":"Sign of the argument (-1, 0, or +1)","description_zh":"","description_zh_html":"","doc":{"anchor":"FUNCTIONS-MATH-FUNC-TABLE","file":"functions-math.html","slug":"18"},"group":"math","group_label":"Mathematical Functions And Operators","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":"","description_zh_html":"","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":""},{"description":"Sign of the argument (-1, 0, or +1)","description_html":"Sign of the argument (-1, 0, or +1)","description_zh":"","description_zh_html":"","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":""}],"zh_from":""},"ManualEvidence":{"doc":{"anchor":"FUNCTIONS-MATH-FUNC-TABLE","file":"functions-math.html","slug":"18"}},"MeasuredEvidence":{}},"Text":{"Collection":"func","Key":"sign","SourceDatabase":"pgweb","Version":"18","Locale":"zh-Hans","Title":"sign","Summary":"参数的符号（-1、0 或 +1）","BodyHTML":"参数的符号（-1、0 或 +1）\u003cpre\u003esign ( numeric ) → numeric\u003c/pre\u003e参数的符号（-1、0 或 +1）\u003cpre\u003esign ( double precision ) → double precision\u003c/pre\u003e参数的符号（-1、0 或 +1）","SourceRevision":"ca936764","ContentHash":"b39b5b4a37315bc1d17d7fdde4ba0c52c4aca8c5c12b53cef78f0db373e55595","Payload":{"description_zh":"参数的符号（-1、0 或 +1）","description_zh_html":"参数的符号（-1、0 或 +1）","signatures":[{"description_zh":"参数的符号（-1、0 或 +1）","description_zh_html":"参数的符号（-1、0 或 +1）","returns":"numeric","text":"sign ( numeric ) → numeric","zh_from":"doc"},{"description_zh":"参数的符号（-1、0 或 +1）","description_zh_html":"参数的符号（-1、0 或 +1）","returns":"double precision","text":"sign ( double precision ) → double precision","zh_from":"doc"}],"zh_from":"doc"}},"RequestedLocale":"zh-Hans","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":"","description_zh_html":"","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":""}},{"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":"","description_zh_html":"","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":""}}],"Spellings":null,"SQLState":null,"Evidence":null}
