From 9cde5e2977e2aec859fcef1590b27419d602cd9d Mon Sep 17 00:00:00 2001 From: Hugo Locurcio Date: Fri, 24 Mar 2023 21:10:43 +0100 Subject: [PATCH] Document how to use logarithm of base 10 with `log()` (cherry picked from commit 3c4f0ca9c639e11b3a0673b27427538b244533b6) --- modules/gdscript/doc_classes/@GDScript.xml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/modules/gdscript/doc_classes/@GDScript.xml b/modules/gdscript/doc_classes/@GDScript.xml index 2d7aed1f8fd..75fbcb37bcd 100644 --- a/modules/gdscript/doc_classes/@GDScript.xml +++ b/modules/gdscript/doc_classes/@GDScript.xml @@ -556,8 +556,8 @@ - Natural logarithm. The amount of time needed to reach a certain level of continuous growth. - [b]Note:[/b] This is not the same as the "log" function on most calculators, which uses a base 10 logarithm. + Returns the [url=https://en.wikipedia.org/wiki/Natural_logarithm]natural logarithm[/url] of [code]s[/code] (base [url=https://en.wikipedia.org/wiki/E_(mathematical_constant)][i]e[/i][/url], with [i]e[/i] being approximately 2.71828). This is the amount of time needed to reach a certain level of continuous growth. + [b]Note:[/b] This is not the same as the "log" function on most calculators, which uses a base 10 logarithm. To use base 10 logarithm, use [code]log(x) / log(10)[/code]. [codeblock] log(10) # Returns 2.302585 [/codeblock]