From 7a8ac69862032324108a5600ecd34d137532de79 Mon Sep 17 00:00:00 2001 From: Amir-Rasteg <127231771+Amir-Rasteg@users.noreply.github.com> Date: Mon, 3 Jul 2023 12:09:19 -0400 Subject: [PATCH] Fix a typo in the `String.to_float` description (cherry picked from commit 9744657bb8410ecfaa462a2c575a68c9b40cfbad) --- doc/classes/String.xml | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/doc/classes/String.xml b/doc/classes/String.xml index 7283dc689cb..d2493c237b7 100644 --- a/doc/classes/String.xml +++ b/doc/classes/String.xml @@ -920,11 +920,11 @@ Converts the string representing a decimal number into a [float]. This method stops on the first non-number character, except the first decimal point ([code].[/code]) and the exponent letter ([code]e[/code]). See also [method is_valid_float]. [codeblock] - var a = "12.35".to_float() # a is 12.35 - var b = "1.2.3".to_float() # b is 1.2 - var c = "12xy3".to_float() # c is 12.0 - var d = "1e3".to_float() # d is 1000.0 - var e = "Hello!".to_int() # e is 0.0 + var a = "12.35".to_float() # a is 12.35 + var b = "1.2.3".to_float() # b is 1.2 + var c = "12xy3".to_float() # c is 12.0 + var d = "1e3".to_float() # d is 1000.0 + var e = "Hello!".to_float() # e is 0.0 [/codeblock]