瀏覽代碼

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.
FlamyAT 7 年之前
父節點
當前提交
da296ce30f
共有 1 個文件被更改,包括 1 次插入1 次删除
  1. 1 1
      doc/classes/float.xml

+ 1 - 1
doc/classes/float.xml

@@ -35,7 +35,7 @@
 			<argument index="0" name="from" type="String">
 			<argument index="0" name="from" type="String">
 			</argument>
 			</argument>
 			<description>
 			<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>
 			</description>
 		</method>
 		</method>
 	</methods>
 	</methods>