2017-09-12 20:42:36 +00:00
<?xml version="1.0" encoding="UTF-8" ?>
2019-04-01 10:33:56 +00:00
<class name= "float" category= "Built-In Types" version= "3.2" >
2017-09-12 20:42:36 +00:00
<brief_description >
Float built-in type
</brief_description>
<description >
Float built-in type.
</description>
<tutorials >
</tutorials>
<methods >
<method name= "float" >
<return type= "float" >
</return>
<argument index= "0" name= "from" type= "bool" >
</argument>
<description >
2019-06-21 23:04:47 +00:00
Cast a [bool] value to a floating-point value, [code]float(true)[/code] will be equal to 1.0 and [code]float(false)[/code] will be equal to 0.0.
2017-09-12 20:42:36 +00:00
</description>
</method>
<method name= "float" >
<return type= "float" >
</return>
<argument index= "0" name= "from" type= "int" >
</argument>
<description >
2019-06-21 23:04:47 +00:00
Cast an [int] value to a floating-point value, [code]float(1)[/code] will be equal to 1.0.
2017-09-12 20:42:36 +00:00
</description>
</method>
<method name= "float" >
<return type= "float" >
</return>
<argument index= "0" name= "from" type= "String" >
</argument>
<description >
2019-06-21 23:04:47 +00:00
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.
2017-09-12 20:42:36 +00:00
</description>
</method>
</methods>
<constants >
</constants>
</class>