diff options
author | FlamyAT <Game.Couler@gmail.com> | 2018-09-29 07:45:27 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-09-29 07:45:27 +0200 |
commit | da296ce30f16eb9fd4835cbd3911856d852eb5b2 (patch) | |
tree | 8862ccb482cca7e29f8f082d89e04081943c0268 | |
parent | c83742ba86eadd03800369c3fb5b1c23f083c59e (diff) |
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.
-rw-r--r-- | doc/classes/float.xml | 2 |
1 files changed, 1 insertions, 1 deletions
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 @@ <argument index="0" name="from" type="String"> </argument> <description> - 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. </description> </method> </methods> |