Documented float
This commit is contained in:
parent
5bb7cef836
commit
520e6f5b09
|
@ -43946,8 +43946,10 @@ This method controls whether the position between two cached points is interpola
|
||||||
</class>
|
</class>
|
||||||
<class name="float" category="Built-In Types">
|
<class name="float" category="Built-In Types">
|
||||||
<brief_description>
|
<brief_description>
|
||||||
|
Float built-in type
|
||||||
</brief_description>
|
</brief_description>
|
||||||
<description>
|
<description>
|
||||||
|
Float built-in type.
|
||||||
</description>
|
</description>
|
||||||
<methods>
|
<methods>
|
||||||
<method name="float">
|
<method name="float">
|
||||||
|
@ -43956,6 +43958,7 @@ This method controls whether the position between two cached points is interpola
|
||||||
<argument index="0" name="from" type="bool">
|
<argument index="0" name="from" type="bool">
|
||||||
</argument>
|
</argument>
|
||||||
<description>
|
<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>
|
</description>
|
||||||
</method>
|
</method>
|
||||||
<method name="float">
|
<method name="float">
|
||||||
|
@ -43964,6 +43967,7 @@ This method controls whether the position between two cached points is interpola
|
||||||
<argument index="0" name="from" type="int">
|
<argument index="0" name="from" type="int">
|
||||||
</argument>
|
</argument>
|
||||||
<description>
|
<description>
|
||||||
|
Cast an [int] value to a floating point value, [code]float(1)[/code] will be equals to 1.0.
|
||||||
</description>
|
</description>
|
||||||
</method>
|
</method>
|
||||||
<method name="float">
|
<method name="float">
|
||||||
|
@ -43972,6 +43976,7 @@ This method controls whether the position between two cached points is interpola
|
||||||
<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.
|
||||||
</description>
|
</description>
|
||||||
</method>
|
</method>
|
||||||
</methods>
|
</methods>
|
||||||
|
|
Loading…
Reference in New Issue