From da296ce30f16eb9fd4835cbd3911856d852eb5b2 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. --- 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 ef3c3d72eb..0c5536b5fe 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.