{"Entry":{"collection":"func","key":"to-number","name":"to_number","aliases":[],"metadata":{"changed_in":[],"changes":[{"descriptions_changed":false,"doc_overhaul":true,"from":"12","group_changed":null,"signatures":{"added":[],"removed":[]},"status":"changed","to":"13"}],"content_hash":"af220a9462434624cae9c000c149e71b6aad0a3e8ed2a031c744b56cbc1cfef6","first_version":"7.1","group":"formatting","group_label":"Data Type Formatting Functions","groups":["formatting"],"imported_at":"2026-09-27T17:57:28.498981+08:00","last_version":"20","name":"to_number","name_key":"to_number","position":7002,"present_in":["7.1","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":"to_number ( text, text ) → numeric","signature_count":1,"slug":"to-number","source_rev":"b7bd9cda","summary":"Converts string to numeric according to the given format.","summary_zh":""}},"Definition":{"Collection":"func","Key":"to-number","SourceDatabase":"center","Version":"18","SourceTable":"func","SourceKey":"to-number","SourceRevision":"b7bd9cda","Facts":{"description":"Converts string to numeric according to the given format.","description_html":"Converts string to numeric according to the given format.","description_zh":"","description_zh_html":"","doc":{"anchor":"FUNCTIONS-FORMATTING-TABLE","file":"functions-formatting.html","slug":"18"},"group":"formatting","group_label":"Data Type Formatting Functions","lang":"en","layout":"table-new","pages":["functions-formatting.html"],"prose_only":false,"signatures":[{"description":"Converts string to numeric according to the given format.","description_html":"Converts string to numeric according to the given format.","description_zh":"","description_zh_html":"","examples":[{"expr":"to_number('12,454.8-', '99G999D9S')","result":"-12454.8"}],"html":"\u003ccode class=\"function\"\u003eto_number\u003c/code\u003e ( \u003ccode class=\"type\"\u003etext\u003c/code\u003e, \u003ccode class=\"type\"\u003etext\u003c/code\u003e ) → \u003ccode class=\"returnvalue\"\u003enumeric\u003c/code\u003e","returns":"numeric","text":"to_number ( text, text ) → numeric","zh_from":""}],"zh_from":""},"ManualEvidence":{"doc":{"anchor":"FUNCTIONS-FORMATTING-TABLE","file":"functions-formatting.html","slug":"18"}},"MeasuredEvidence":{}},"Text":{"Collection":"func","Key":"to-number","SourceDatabase":"pgweb","Version":"18","Locale":"zh-Hans","Title":"to_number","Summary":"根据给定的格式将字符串转换为数值。","BodyHTML":"根据给定的格式将字符串转换为数值。\u003cpre\u003eto_number ( text, text ) → numeric\u003c/pre\u003e根据给定的格式将字符串转换为数值。","SourceRevision":"ca936764","ContentHash":"d9edb7f6ab1f200a8cce0c8194c8d63b72af4afe90dd20cd0ff79f03e8b8677a","Payload":{"description_zh":"根据给定的格式将字符串转换为数值。","description_zh_html":"根据给定的格式将字符串转换为数值。","signatures":[{"description_zh":"根据给定的格式将字符串转换为数值。","description_zh_html":"根据给定的格式将字符串转换为数值。","returns":"numeric","text":"to_number ( text, text ) → numeric","zh_from":"doc"}],"zh_from":"doc"}},"RequestedLocale":"zh-Hans","Fallback":false,"Versions":["10","11","12","13","14","15","16","17","18","19","20","7.1","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":"41256bdd6d4f5665a4b87594693eb2ff89a24e94a41b7ffcaf18e3462f43beed","Text":"to_number ( text, text ) → numeric","Returns":"numeric","Payload":{"description":"Converts string to numeric according to the given format.","description_html":"Converts string to numeric according to the given format.","description_zh":"","description_zh_html":"","examples":[{"expr":"to_number('12,454.8-', '99G999D9S')","result":"-12454.8"}],"html":"\u003ccode class=\"function\"\u003eto_number\u003c/code\u003e ( \u003ccode class=\"type\"\u003etext\u003c/code\u003e, \u003ccode class=\"type\"\u003etext\u003c/code\u003e ) → \u003ccode class=\"returnvalue\"\u003enumeric\u003c/code\u003e","returns":"numeric","text":"to_number ( text, text ) → numeric","zh_from":""}}],"Spellings":null,"SQLState":null,"Evidence":null}
