{"Entry":{"collection":"func","key":"ceil","name":"ceil","aliases":[],"metadata":{"changed_in":["7.3"],"changes":[{"descriptions_changed":false,"doc_overhaul":false,"from":"7.2","group_changed":null,"signatures":{"added":["ceil ( dp or numeric ) → (same as input)"],"removed":["ceil ( numeric ) → numeric"]},"status":"changed","to":"7.3"},{"descriptions_changed":true,"doc_overhaul":false,"from":"9.0","group_changed":null,"signatures":{"added":[],"removed":[]},"status":"changed","to":"9.1"},{"descriptions_changed":false,"doc_overhaul":true,"from":"12","group_changed":null,"signatures":{"added":[],"removed":[]},"status":"changed","to":"13"}],"content_hash":"cf83f15bd14e25207e2dc7763ea74b322dd41998b1ac34aaae20272d0c93282a","first_version":"7.1","group":"math","group_label":"Mathematical Functions And Operators","groups":["math"],"imported_at":"2026-09-27T17:57:28.198211+08:00","last_version":"20","name":"ceil","name_key":"ceil","position":2013,"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":"ceil ( numeric ) → numeric","signature_count":2,"slug":"ceil","source_rev":"b7bd9cda","summary":"Nearest integer greater than or equal to argument","summary_zh":""}},"Definition":{"Collection":"func","Key":"ceil","SourceDatabase":"center","Version":"18","SourceTable":"func","SourceKey":"ceil","SourceRevision":"b7bd9cda","Facts":{"description":"Nearest integer greater than or equal to argument","description_html":"Nearest integer greater than or equal to argument","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":"Nearest integer greater than or equal to argument","description_html":"Nearest integer greater than or equal to argument","description_zh":"","description_zh_html":"","examples":[{"expr":"ceil(42.2)","result":"43"},{"expr":"ceil(-42.8)","result":"-42"}],"html":"\u003ccode class=\"function\"\u003eceil\u003c/code\u003e ( \u003ccode class=\"type\"\u003enumeric\u003c/code\u003e ) → \u003ccode class=\"returnvalue\"\u003enumeric\u003c/code\u003e","returns":"numeric","text":"ceil ( numeric ) → numeric","zh_from":""},{"description":"Nearest integer greater than or equal to argument","description_html":"Nearest integer greater than or equal to argument","description_zh":"","description_zh_html":"","examples":[{"expr":"ceil(42.2)","result":"43"},{"expr":"ceil(-42.8)","result":"-42"}],"html":"\u003ccode class=\"function\"\u003eceil\u003c/code\u003e ( \u003ccode class=\"type\"\u003edouble precision\u003c/code\u003e ) → \u003ccode class=\"returnvalue\"\u003edouble precision\u003c/code\u003e","returns":"double precision","text":"ceil ( 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":"ceil","SourceDatabase":"pgweb","Version":"18","Locale":"zh-Hans","Title":"ceil","Summary":"大于或等于参数的最接近的整数","BodyHTML":"大于或等于参数的最接近的整数\u003cpre\u003eceil ( numeric ) → numeric\u003c/pre\u003e大于或等于参数的最接近的整数\u003cpre\u003eceil ( double precision ) → double precision\u003c/pre\u003e大于或等于参数的最接近的整数","SourceRevision":"ca936764","ContentHash":"db5d82241bec11efb65a1662991f19d2e9a5f70d159203478abda0cfac38e292","Payload":{"description_zh":"大于或等于参数的最接近的整数","description_zh_html":"大于或等于参数的最接近的整数","signatures":[{"description_zh":"大于或等于参数的最接近的整数","description_zh_html":"大于或等于参数的最接近的整数","returns":"numeric","text":"ceil ( numeric ) → numeric","zh_from":"doc"},{"description_zh":"大于或等于参数的最接近的整数","description_zh_html":"大于或等于参数的最接近的整数","returns":"double precision","text":"ceil ( 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.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":"2d343c26353a95e8391bed6ee0b81b493bf2627096e2eeb0766d26ee5153b2d7","Text":"ceil ( numeric ) → numeric","Returns":"numeric","Payload":{"description":"Nearest integer greater than or equal to argument","description_html":"Nearest integer greater than or equal to argument","description_zh":"","description_zh_html":"","examples":[{"expr":"ceil(42.2)","result":"43"},{"expr":"ceil(-42.8)","result":"-42"}],"html":"\u003ccode class=\"function\"\u003eceil\u003c/code\u003e ( \u003ccode class=\"type\"\u003enumeric\u003c/code\u003e ) → \u003ccode class=\"returnvalue\"\u003enumeric\u003c/code\u003e","returns":"numeric","text":"ceil ( numeric ) → numeric","zh_from":""}},{"Version":"18","Ordinal":1,"Hash":"77d312fa21c3aa72a29a618315650b543b81e364fb27cca2e38beffdb7e29d62","Text":"ceil ( double precision ) → double precision","Returns":"double precision","Payload":{"description":"Nearest integer greater than or equal to argument","description_html":"Nearest integer greater than or equal to argument","description_zh":"","description_zh_html":"","examples":[{"expr":"ceil(42.2)","result":"43"},{"expr":"ceil(-42.8)","result":"-42"}],"html":"\u003ccode class=\"function\"\u003eceil\u003c/code\u003e ( \u003ccode class=\"type\"\u003edouble precision\u003c/code\u003e ) → \u003ccode class=\"returnvalue\"\u003edouble precision\u003c/code\u003e","returns":"double precision","text":"ceil ( double precision ) → double precision","zh_from":""}}],"Spellings":null,"SQLState":null,"Evidence":null}
