Documented float

(cherry picked from commit 520e6f5b09)
This commit is contained in:
Daniel J. Ramirez 2016-05-02 13:11:14 -05:00 committed by Rémi Verschelde
parent e0a13981fc
commit 0b75c39c2b
1 changed files with 5 additions and 0 deletions

View File

@ -42537,8 +42537,10 @@ This method controls whether the position between two cached points is interpola
</class>
<class name="float" category="Built-In Types">
<brief_description>
Float built-in type
</brief_description>
<description>
Float built-in type.
</description>
<methods>
<method name="float">
@ -42547,6 +42549,7 @@ This method controls whether the position between two cached points is interpola
<argument index="0" name="from" type="bool">
</argument>
<description>
Cast a [bool] value to a floating point value, [code]float(true)[/code] will be equals to 1.0 and [code]float(false)[/code] will be equals to 0.0.
</description>
</method>
<method name="float">
@ -42555,6 +42558,7 @@ This method controls whether the position between two cached points is interpola
<argument index="0" name="from" type="int">
</argument>
<description>
Cast an [int] value to a floating point value, [code]float(1)[/code] will be equals to 1.0.
</description>
</method>
<method name="float">
@ -42563,6 +42567,7 @@ This method controls whether the position between two cached points is interpola
<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.
</description>
</method>
</methods>