{"Entry":{"collection":"func","key":"to-bin","name":"to_bin","aliases":[],"metadata":{"changed_in":[],"changes":[{"descriptions_changed":false,"doc_overhaul":false,"from":"16","group_changed":null,"signatures":{"added":[],"removed":[]},"status":"added","to":"17"}],"content_hash":"b28501a582100663599faeab64707b0aba8636f109397e8388a5cdfc8a8dbf28","derived_content_hash":"3ab7e946c1abf9e332d5820bf92442a44899213a4f0fd5a52245c303d4318d8f","documentation_refresh":{"batch":"20261113","original_source_rev":"wiki-repair-20261023:1a06aaae75225449dbf6f736161b432bdfde3f6ab9b3c89aedbd96e10bea6bab","versions":{"17":"17.12","18":"18.7","19":"19rc2"}},"first_version":"17","group":"string","group_label":"String Functions And Operators","groups":["string"],"imported_at":"2026-09-14T21:49:48.67662+08:00","last_version":"20","name":"to_bin","name_key":"to_bin","position":3050,"present_in":["17","18","19","20"],"repair_provenance":{"original_source_revision":"2026-09-14T13:14:25.684213+00:00@99e6866c","receipt_sha256":"a9ddd1286e28a0120258f359666f1937b52c56e08ac5e685fd20b6648ef45d85","repair":"wiki-repair-20261023"},"signature":"to_bin ( integer ) → text","signature_count":2,"slug":"to-bin","source_rev":"wiki-repair-20261023:1a06aaae75225449dbf6f736161b432bdfde3f6ab9b3c89aedbd96e10bea6bab","summary":"Converts the number to its equivalent two's complement binary representation.","summary_zh":""}},"Definition":{"Collection":"func","Key":"to-bin","SourceDatabase":"center","Version":"18","SourceTable":"func","SourceKey":"to-bin","SourceRevision":"wiki-repair-20261023:1a06aaae75225449dbf6f736161b432bdfde3f6ab9b3c89aedbd96e10bea6bab","Facts":{"description":"Converts the number to its equivalent two's complement binary representation.","description_html":"Converts the number to its equivalent two's complement binary representation.","description_zh":"将数字转换为等价的二进制补码表示。","description_zh_html":"将数字转换为等价的二进制补码表示。","doc":{"anchor":"FUNCTIONS-STRING-OTHER","file":"functions-string.html","sha256":"dbe9f91e55c35969d99a8d2697b6f7bd5388a24ccc2b89706a666f176025f1e2","slug":"18"},"documentation_revision":{"inputs":[{"file":"functions-string.html","kind":"same-version-reviewed-manual","locale":"en","sha256":"dbe9f91e55c35969d99a8d2697b6f7bd5388a24ccc2b89706a666f176025f1e2","version":"18.7"},{"file":"functions-string.html","kind":"same-version-reviewed-manual","locale":"zh-Hans","sha256":"7eecd3bb343149124be0476a539f3c682476eab2a15489a0e0ad06fbb769ea9e","version":"18.7"}],"release":"18.7","runtime_remeasured":false,"source_revision":"pgdoc:b9f0e7232f60f380d642ac9b99226606c254b552"},"group":"string","group_label":"字符串函数和操作符","lang":"en","layout":"table-new","pages":["functions-string.html"],"prose_only":false,"signatures":[{"description":"Converts the number to its equivalent two's complement binary representation.","description_html":"Converts the number to its equivalent two's complement binary representation.","description_zh":"将数字转换为等价的二进制补码表示。","description_zh_html":"将数字转换为等价的二进制补码表示。","examples":[{"expr":"to_bin(2147483647)","result":"1111111111111111111111111111111"},{"expr":"to_bin(-1234)","result":"11111111111111111111101100101110"}],"html":"\u003ccode class=\"function\"\u003eto_bin\u003c/code\u003e ( \u003ccode class=\"type\"\u003einteger\u003c/code\u003e ) → \u003ccode class=\"returnvalue\"\u003etext\u003c/code\u003e","returns":"text","text":"to_bin ( integer ) → text","zh_from":"same-version-manual"},{"description":"Converts the number to its equivalent two's complement binary representation.","description_html":"Converts the number to its equivalent two's complement binary representation.","description_zh":"将数字转换为等价的二进制补码表示。","description_zh_html":"将数字转换为等价的二进制补码表示。","examples":[{"expr":"to_bin(2147483647)","result":"1111111111111111111111111111111"},{"expr":"to_bin(-1234)","result":"11111111111111111111101100101110"}],"html":"\u003ccode class=\"function\"\u003eto_bin\u003c/code\u003e ( \u003ccode class=\"type\"\u003ebigint\u003c/code\u003e ) → \u003ccode class=\"returnvalue\"\u003etext\u003c/code\u003e","returns":"text","text":"to_bin ( bigint ) → text","zh_from":"same-version-manual"}],"translation_provenance":{"inputs":[{"kind":"current-pgdoc-translation","path":"/Users/vonng/pgsty/pgdoc/zh/18/html/functions-string.html","sha256":"0446377e0eccc9299099dc4b4b293204c337e3abefcdc396e9698bc54dd1080b"}],"kind":"same-version-pgdoc","locale":"zh-Hans","source_revision":"b1b500221dbe5437cfca004d6b04d3f6e422765d","version":"18"},"zh_from":"same-version-manual"},"ManualEvidence":{"doc":{"anchor":"FUNCTIONS-STRING-OTHER","file":"functions-string.html","sha256":"dbe9f91e55c35969d99a8d2697b6f7bd5388a24ccc2b89706a666f176025f1e2","slug":"18"}},"MeasuredEvidence":{}},"Text":{"Collection":"func","Key":"to-bin","SourceDatabase":"center","Version":"18","Locale":"en","Title":"to_bin","Summary":"Converts the number to its equivalent two's complement binary representation.","BodyHTML":"Converts the number to its equivalent two\u0026#39;s complement binary representation.","SourceRevision":"wiki-repair-20261023:1a06aaae75225449dbf6f736161b432bdfde3f6ab9b3c89aedbd96e10bea6bab","ContentHash":"a5b54dfe14e9452c85c91a0513251345efb39d601afbe67125e6bae72faea932","Payload":{"description":"Converts the number to its equivalent two's complement binary representation.","description_html":"Converts the number to its equivalent two's complement binary representation.","signatures":[{"description":"Converts the number to its equivalent two's complement binary representation.","description_html":"Converts the number to its equivalent two's complement binary representation.","description_zh":"将数字转换为等价的二进制补码表示。","description_zh_html":"将数字转换为等价的二进制补码表示。","examples":[{"expr":"to_bin(2147483647)","result":"1111111111111111111111111111111"},{"expr":"to_bin(-1234)","result":"11111111111111111111101100101110"}],"html":"\u003ccode class=\"function\"\u003eto_bin\u003c/code\u003e ( \u003ccode class=\"type\"\u003einteger\u003c/code\u003e ) → \u003ccode class=\"returnvalue\"\u003etext\u003c/code\u003e","returns":"text","text":"to_bin ( integer ) → text","zh_from":"same-version-manual"},{"description":"Converts the number to its equivalent two's complement binary representation.","description_html":"Converts the number to its equivalent two's complement binary representation.","description_zh":"将数字转换为等价的二进制补码表示。","description_zh_html":"将数字转换为等价的二进制补码表示。","examples":[{"expr":"to_bin(2147483647)","result":"1111111111111111111111111111111"},{"expr":"to_bin(-1234)","result":"11111111111111111111101100101110"}],"html":"\u003ccode class=\"function\"\u003eto_bin\u003c/code\u003e ( \u003ccode class=\"type\"\u003ebigint\u003c/code\u003e ) → \u003ccode class=\"returnvalue\"\u003etext\u003c/code\u003e","returns":"text","text":"to_bin ( bigint ) → text","zh_from":"same-version-manual"}]}},"RequestedLocale":"en","Fallback":false,"Versions":["17","18","19","20"],"Locales":["en","zh-Hans"],"Signatures":[{"Version":"18","Ordinal":0,"Hash":"fd2622b9e633a5529fc7d36b771ba57d4c77030c661b157a8c2d62f1b2a9390f","Text":"to_bin ( integer ) → text","Returns":"text","Payload":{"description":"Converts the number to its equivalent two's complement binary representation.","description_html":"Converts the number to its equivalent two's complement binary representation.","description_zh":"将数字转换为等价的二进制补码表示。","description_zh_html":"将数字转换为等价的二进制补码表示。","examples":[{"expr":"to_bin(2147483647)","result":"1111111111111111111111111111111"},{"expr":"to_bin(-1234)","result":"11111111111111111111101100101110"}],"html":"\u003ccode class=\"function\"\u003eto_bin\u003c/code\u003e ( \u003ccode class=\"type\"\u003einteger\u003c/code\u003e ) → \u003ccode class=\"returnvalue\"\u003etext\u003c/code\u003e","returns":"text","text":"to_bin ( integer ) → text","zh_from":"same-version-manual"}},{"Version":"18","Ordinal":1,"Hash":"dfe152b72443abd228db575b0de617a269987e44ba1fc3216043321cc1227d4e","Text":"to_bin ( bigint ) → text","Returns":"text","Payload":{"description":"Converts the number to its equivalent two's complement binary representation.","description_html":"Converts the number to its equivalent two's complement binary representation.","description_zh":"将数字转换为等价的二进制补码表示。","description_zh_html":"将数字转换为等价的二进制补码表示。","examples":[{"expr":"to_bin(2147483647)","result":"1111111111111111111111111111111"},{"expr":"to_bin(-1234)","result":"11111111111111111111101100101110"}],"html":"\u003ccode class=\"function\"\u003eto_bin\u003c/code\u003e ( \u003ccode class=\"type\"\u003ebigint\u003c/code\u003e ) → \u003ccode class=\"returnvalue\"\u003etext\u003c/code\u003e","returns":"text","text":"to_bin ( bigint ) → text","zh_from":"same-version-manual"}}],"Spellings":null,"SQLState":null,"Evidence":null}
