{"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","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"],"signature":"to_bin ( integer ) → text","signature_count":2,"slug":"to-bin","source_rev":"2026-09-14T13:14:25.684213+00:00@99e6866c","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":"2026-09-14T13:14:25.684213+00:00@99e6866c","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","slug":"18"},"group":"string","group_label":"String Functions And Operators","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":""},{"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":""}],"zh_from":""},"ManualEvidence":{"doc":{"anchor":"FUNCTIONS-STRING-OTHER","file":"functions-string.html","slug":"18"}},"MeasuredEvidence":{}},"Text":{"Collection":"func","Key":"to-bin","SourceDatabase":"pgweb","Version":"18","Locale":"zh-Hans","Title":"to_bin","Summary":"将数字转换为等价的二进制补码表示。","BodyHTML":"将数字转换为等价的二进制补码表示。\u003cpre\u003eto_bin ( integer ) → text\u003c/pre\u003e将数字转换为等价的二进制补码表示。\u003cpre\u003eto_bin ( bigint ) → text\u003c/pre\u003e将数字转换为等价的二进制补码表示。","SourceRevision":"ca936764","ContentHash":"e01f934e5c07e6e99be78b83e0dd333c9b88d4544766648d05658479c9821b06","Payload":{"description_zh":"将数字转换为等价的二进制补码表示。","description_zh_html":"将数字转换为等价的二进制补码表示。","signatures":[{"description_zh":"将数字转换为等价的二进制补码表示。","description_zh_html":"将数字转换为等价的二进制补码表示。","returns":"text","text":"to_bin ( integer ) → text","zh_from":"doc"},{"description_zh":"将数字转换为等价的二进制补码表示。","description_zh_html":"将数字转换为等价的二进制补码表示。","returns":"text","text":"to_bin ( bigint ) → text","zh_from":"doc"}],"zh_from":"doc"}},"RequestedLocale":"zh-Hans","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":""}},{"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":""}}],"Spellings":null,"SQLState":null,"Evidence":null}
