From ef1376306a1182e9ae50e0d6751a05acf1acd841 Mon Sep 17 00:00:00 2001 From: FlamyAT Date: Sat, 29 Sep 2018 07:45:27 +0200 Subject: [PATCH] Fixed casting result in float.xml The float-string parsing result in the documentation was inaccurate. 1e-3 is written as 0.001 when decimal. (cherry picked from commit da296ce30f16eb9fd4835cbd3911856d852eb5b2) --- doc/classes/float.xml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/doc/classes/float.xml b/doc/classes/float.xml index a428214119e..3fb32bb2f7b 100644 --- a/doc/classes/float.xml +++ b/doc/classes/float.xml @@ -35,7 +35,7 @@ - Cast a [String] value to a floating point value. This method accepts float value strings like [code] '1.23' [/code] and exponential notation strings for its parameter so calling [code] float('1e3') [/code] will return 1000.0 and calling [code] float('1e-3') [/code] will return -0.001. + Cast a [String] value to a floating point value. This method accepts float value strings like [code] '1.23' [/code] and exponential notation strings for its parameter so calling [code] float('1e3') [/code] will return 1000.0 and calling [code] float('1e-3') [/code] will return 0.001.