{"Entry":{"collection":"func","key":"log","name":"log","aliases":[],"metadata":{"changed_in":["7.3"],"changes":[{"descriptions_changed":false,"doc_overhaul":false,"from":"7.2","group_changed":null,"signatures":{"added":["log ( dp or numeric ) → (same as input)"],"removed":["log ( dp ) → dp"]},"status":"changed","to":"7.3"},{"descriptions_changed":false,"doc_overhaul":true,"from":"12","group_changed":null,"signatures":{"added":[],"removed":[]},"status":"changed","to":"13"}],"content_hash":"927b9fdecb08dd0f8ec7e135e52b651f29f957cb932bd51ab5f921942a083444","first_version":"7.1","group":"math","group_label":"Mathematical Functions And Operators","groups":["math"],"imported_at":"2026-09-27T17:57:28.226113+08:00","last_version":"20","name":"log","name_key":"log","position":2032,"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":"log ( numeric ) → numeric","signature_count":3,"slug":"log","source_rev":"b7bd9cda","summary":"Base 10 logarithm","summary_zh":""}},"Definition":{"Collection":"func","Key":"log","SourceDatabase":"center","Version":"18","SourceTable":"func","SourceKey":"log","SourceRevision":"b7bd9cda","Facts":{"description":"Base 10 logarithm","description_html":"Base 10 logarithm","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":"Base 10 logarithm","description_html":"Base 10 logarithm","description_zh":"","description_zh_html":"","examples":[{"expr":"log(100)","result":"2"}],"html":"\u003ccode class=\"function\"\u003elog\u003c/code\u003e ( \u003ccode class=\"type\"\u003enumeric\u003c/code\u003e ) → \u003ccode class=\"returnvalue\"\u003enumeric\u003c/code\u003e","returns":"numeric","text":"log ( numeric ) → numeric","zh_from":""},{"description":"Base 10 logarithm","description_html":"Base 10 logarithm","description_zh":"","description_zh_html":"","examples":[{"expr":"log(100)","result":"2"}],"html":"\u003ccode class=\"function\"\u003elog\u003c/code\u003e ( \u003ccode class=\"type\"\u003edouble precision\u003c/code\u003e ) → \u003ccode class=\"returnvalue\"\u003edouble precision\u003c/code\u003e","returns":"double precision","text":"log ( double precision ) → double precision","zh_from":""},{"description":"Logarithm of x to base b","description_html":"Logarithm of \u003cem class=\"parameter\"\u003e\u003ccode\u003ex\u003c/code\u003e\u003c/em\u003e to base \u003cem class=\"parameter\"\u003e\u003ccode\u003eb\u003c/code\u003e\u003c/em\u003e","description_zh":"","description_zh_html":"","examples":[{"expr":"log(2.0, 64.0)","result":"6.0000000000000000"}],"html":"\u003ccode class=\"function\"\u003elog\u003c/code\u003e ( \u003cem class=\"parameter\"\u003e\u003ccode\u003eb\u003c/code\u003e\u003c/em\u003e \u003ccode class=\"type\"\u003enumeric\u003c/code\u003e, \u003cem class=\"parameter\"\u003e\u003ccode\u003ex\u003c/code\u003e\u003c/em\u003e \u003ccode class=\"type\"\u003enumeric\u003c/code\u003e ) → \u003ccode class=\"returnvalue\"\u003enumeric\u003c/code\u003e","returns":"numeric","text":"log ( b numeric, x numeric ) → numeric","zh_from":""}],"zh_from":""},"ManualEvidence":{"doc":{"anchor":"FUNCTIONS-MATH-FUNC-TABLE","file":"functions-math.html","slug":"18"}},"MeasuredEvidence":{}},"Text":{"Collection":"func","Key":"log","SourceDatabase":"pgweb","Version":"18","Locale":"zh-Hans","Title":"log","Summary":"以10为底的对数","BodyHTML":"以10为底的对数\u003cpre\u003elog ( numeric ) → numeric\u003c/pre\u003e以10为底的对数\u003cpre\u003elog ( double precision ) → double precision\u003c/pre\u003e以10为底的对数\u003cpre\u003elog ( b numeric, x numeric ) → numeric\u003c/pre\u003e以\u003cem\u003e\u003ccode\u003eb\u003c/code\u003e\u003c/em\u003e为底对参数\u003cem\u003e\u003ccode\u003ex\u003c/code\u003e\u003c/em\u003e取对数","SourceRevision":"ca936764","ContentHash":"f05d6c20d17d7963a1cb2426ec684bf23e2a6f59375bfdb4529b631848c3d3f8","Payload":{"description_zh":"以10为底的对数","description_zh_html":"以10为底的对数","signatures":[{"description_zh":"以10为底的对数","description_zh_html":"以10为底的对数","returns":"numeric","text":"log ( numeric ) → numeric","zh_from":"doc"},{"description_zh":"以10为底的对数","description_zh_html":"以10为底的对数","returns":"double precision","text":"log ( double precision ) → double precision","zh_from":"doc"},{"description_zh":"以b为底对参数x取对数","description_zh_html":"以\u003cem class=\"parameter\"\u003e\u003ccode\u003eb\u003c/code\u003e\u003c/em\u003e为底对参数\u003cem class=\"parameter\"\u003e\u003ccode\u003ex\u003c/code\u003e\u003c/em\u003e取对数","returns":"numeric","text":"log ( b numeric, x numeric ) → 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":"62d5d7cfd5c7c38add3f9de5f67216ad79e51d7857fafa17776e2d27cd2fef33","Text":"log ( numeric ) → numeric","Returns":"numeric","Payload":{"description":"Base 10 logarithm","description_html":"Base 10 logarithm","description_zh":"","description_zh_html":"","examples":[{"expr":"log(100)","result":"2"}],"html":"\u003ccode class=\"function\"\u003elog\u003c/code\u003e ( \u003ccode class=\"type\"\u003enumeric\u003c/code\u003e ) → \u003ccode class=\"returnvalue\"\u003enumeric\u003c/code\u003e","returns":"numeric","text":"log ( numeric ) → numeric","zh_from":""}},{"Version":"18","Ordinal":1,"Hash":"e74e4d02f3d955f2754f9e393472ae19076e10710e419bb5fb3ac19c4d92d6ed","Text":"log ( double precision ) → double precision","Returns":"double precision","Payload":{"description":"Base 10 logarithm","description_html":"Base 10 logarithm","description_zh":"","description_zh_html":"","examples":[{"expr":"log(100)","result":"2"}],"html":"\u003ccode class=\"function\"\u003elog\u003c/code\u003e ( \u003ccode class=\"type\"\u003edouble precision\u003c/code\u003e ) → \u003ccode class=\"returnvalue\"\u003edouble precision\u003c/code\u003e","returns":"double precision","text":"log ( double precision ) → double precision","zh_from":""}},{"Version":"18","Ordinal":2,"Hash":"9b88f763d5f012af46eafaefaf1bf6110b20c9d7133283c5a7aada07b02c3913","Text":"log ( b numeric, x numeric ) → numeric","Returns":"numeric","Payload":{"description":"Logarithm of x to base b","description_html":"Logarithm of \u003cem class=\"parameter\"\u003e\u003ccode\u003ex\u003c/code\u003e\u003c/em\u003e to base \u003cem class=\"parameter\"\u003e\u003ccode\u003eb\u003c/code\u003e\u003c/em\u003e","description_zh":"","description_zh_html":"","examples":[{"expr":"log(2.0, 64.0)","result":"6.0000000000000000"}],"html":"\u003ccode class=\"function\"\u003elog\u003c/code\u003e ( \u003cem class=\"parameter\"\u003e\u003ccode\u003eb\u003c/code\u003e\u003c/em\u003e \u003ccode class=\"type\"\u003enumeric\u003c/code\u003e, \u003cem class=\"parameter\"\u003e\u003ccode\u003ex\u003c/code\u003e\u003c/em\u003e \u003ccode class=\"type\"\u003enumeric\u003c/code\u003e ) → \u003ccode class=\"returnvalue\"\u003enumeric\u003c/code\u003e","returns":"numeric","text":"log ( b numeric, x numeric ) → numeric","zh_from":""}}],"Spellings":null,"SQLState":null,"Evidence":null}
