{"Entry":{"collection":"func","key":"lcm","name":"lcm","aliases":[],"metadata":{"changed_in":[],"changes":[{"descriptions_changed":false,"doc_overhaul":false,"from":"12","group_changed":null,"signatures":{"added":[],"removed":[]},"status":"added","to":"13"}],"content_hash":"f0bb3581e33773064e4456fed7d5c071b2005585e35ef7788484c95110aa274c","first_version":"13","group":"math","group_label":"Mathematical Functions And Operators","groups":["math"],"imported_at":"2026-09-14T21:49:48.625448+08:00","last_version":"20","name":"lcm","name_key":"lcm","position":2029,"present_in":["13","14","15","16","17","18","19","20"],"signature":"lcm ( numeric_type, numeric_type ) → numeric_type","signature_count":1,"slug":"lcm","source_rev":"2026-09-14T13:14:25.684213+00:00@99e6866c","summary":"Least common multiple (the smallest strictly positive number that is an integral multiple of both inputs); returns 0 if either input is zero; available for integer, bigint, and numeric","summary_zh":""}},"Definition":{"Collection":"func","Key":"lcm","SourceDatabase":"center","Version":"18","SourceTable":"func","SourceKey":"lcm","SourceRevision":"2026-09-14T13:14:25.684213+00:00@99e6866c","Facts":{"description":"Least common multiple (the smallest strictly positive number that is an integral multiple of both inputs); returns 0 if either input is zero; available for integer, bigint, and numeric","description_html":"Least common multiple (the smallest strictly positive number that is an integral multiple of both inputs); returns \u003ccode class=\"literal\"\u003e0\u003c/code\u003e if either input is zero; available for \u003ccode class=\"type\"\u003einteger\u003c/code\u003e, \u003ccode class=\"type\"\u003ebigint\u003c/code\u003e, and \u003ccode class=\"type\"\u003enumeric\u003c/code\u003e","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":"Least common multiple (the smallest strictly positive number that is an integral multiple of both inputs); returns 0 if either input is zero; available for integer, bigint, and numeric","description_html":"Least common multiple (the smallest strictly positive number that is an integral multiple of both inputs); returns \u003ccode class=\"literal\"\u003e0\u003c/code\u003e if either input is zero; available for \u003ccode class=\"type\"\u003einteger\u003c/code\u003e, \u003ccode class=\"type\"\u003ebigint\u003c/code\u003e, and \u003ccode class=\"type\"\u003enumeric\u003c/code\u003e","description_zh":"","description_zh_html":"","examples":[{"expr":"lcm(1071, 462)","result":"23562"}],"html":"\u003ccode class=\"function\"\u003elcm\u003c/code\u003e ( \u003cem class=\"replaceable\"\u003e\u003ccode\u003enumeric_type\u003c/code\u003e\u003c/em\u003e, \u003cem class=\"replaceable\"\u003e\u003ccode\u003enumeric_type\u003c/code\u003e\u003c/em\u003e ) → \u003ccode class=\"returnvalue\"\u003e\u003cem class=\"replaceable\"\u003e\u003ccode\u003enumeric_type\u003c/code\u003e\u003c/em\u003e\u003c/code\u003e","returns":"numeric_type","text":"lcm ( numeric_type, numeric_type ) → numeric_type","zh_from":""}],"zh_from":""},"ManualEvidence":{"doc":{"anchor":"FUNCTIONS-MATH-FUNC-TABLE","file":"functions-math.html","slug":"18"}},"MeasuredEvidence":{}},"Text":{"Collection":"func","Key":"lcm","SourceDatabase":"pgweb","Version":"18","Locale":"zh-Hans","Title":"lcm","Summary":"最小公倍数（同时为两个输入的整数倍的最小严格正数）；如果任意一个输入值为零则返回0；适用于integer、bigint 和 numeric","BodyHTML":"最小公倍数（同时为两个输入的整数倍的最小严格正数）；如果任意一个输入值为零则返回\u003ccode\u003e0\u003c/code\u003e；适用于\u003ccode\u003einteger\u003c/code\u003e、\u003ccode\u003ebigint\u003c/code\u003e 和 \u003ccode\u003enumeric\u003c/code\u003e\u003cpre\u003elcm ( numeric_type, numeric_type ) → numeric_type\u003c/pre\u003e最小公倍数（同时为两个输入的整数倍的最小严格正数）；如果任意一个输入值为零则返回\u003ccode\u003e0\u003c/code\u003e；适用于\u003ccode\u003einteger\u003c/code\u003e、\u003ccode\u003ebigint\u003c/code\u003e 和 \u003ccode\u003enumeric\u003c/code\u003e","SourceRevision":"ca936764","ContentHash":"15c5464056def22e7f46557536aca99ddb85e2e2f994ae679bfaca7a45e43de9","Payload":{"description_zh":"最小公倍数（同时为两个输入的整数倍的最小严格正数）；如果任意一个输入值为零则返回0；适用于integer、bigint 和 numeric","description_zh_html":"最小公倍数（同时为两个输入的整数倍的最小严格正数）；如果任意一个输入值为零则返回\u003ccode class=\"literal\"\u003e0\u003c/code\u003e；适用于\u003ccode class=\"type\"\u003einteger\u003c/code\u003e、\u003ccode class=\"type\"\u003ebigint\u003c/code\u003e 和 \u003ccode class=\"type\"\u003enumeric\u003c/code\u003e","signatures":[{"description_zh":"最小公倍数（同时为两个输入的整数倍的最小严格正数）；如果任意一个输入值为零则返回0；适用于integer、bigint 和 numeric","description_zh_html":"最小公倍数（同时为两个输入的整数倍的最小严格正数）；如果任意一个输入值为零则返回\u003ccode class=\"literal\"\u003e0\u003c/code\u003e；适用于\u003ccode class=\"type\"\u003einteger\u003c/code\u003e、\u003ccode class=\"type\"\u003ebigint\u003c/code\u003e 和 \u003ccode class=\"type\"\u003enumeric\u003c/code\u003e","returns":"numeric_type","text":"lcm ( numeric_type, numeric_type ) → numeric_type","zh_from":"doc"}],"zh_from":"doc"}},"RequestedLocale":"zh-Hans","Fallback":false,"Versions":["13","14","15","16","17","18","19","20"],"Locales":["en","zh-Hans"],"Signatures":[{"Version":"18","Ordinal":0,"Hash":"db2f89e33d824b7b1c598a26cde631fbc6bfbf75f95438737cf34a5570c2fc9a","Text":"lcm ( numeric_type, numeric_type ) → numeric_type","Returns":"numeric_type","Payload":{"description":"Least common multiple (the smallest strictly positive number that is an integral multiple of both inputs); returns 0 if either input is zero; available for integer, bigint, and numeric","description_html":"Least common multiple (the smallest strictly positive number that is an integral multiple of both inputs); returns \u003ccode class=\"literal\"\u003e0\u003c/code\u003e if either input is zero; available for \u003ccode class=\"type\"\u003einteger\u003c/code\u003e, \u003ccode class=\"type\"\u003ebigint\u003c/code\u003e, and \u003ccode class=\"type\"\u003enumeric\u003c/code\u003e","description_zh":"","description_zh_html":"","examples":[{"expr":"lcm(1071, 462)","result":"23562"}],"html":"\u003ccode class=\"function\"\u003elcm\u003c/code\u003e ( \u003cem class=\"replaceable\"\u003e\u003ccode\u003enumeric_type\u003c/code\u003e\u003c/em\u003e, \u003cem class=\"replaceable\"\u003e\u003ccode\u003enumeric_type\u003c/code\u003e\u003c/em\u003e ) → \u003ccode class=\"returnvalue\"\u003e\u003cem class=\"replaceable\"\u003e\u003ccode\u003enumeric_type\u003c/code\u003e\u003c/em\u003e\u003c/code\u003e","returns":"numeric_type","text":"lcm ( numeric_type, numeric_type ) → numeric_type","zh_from":""}}],"Spellings":null,"SQLState":null,"Evidence":null}
