Restore numeric from String constructors

This commit is contained in:
kobewi
2021-09-19 00:46:57 +02:00
parent 63c0dc690e
commit a43319b6c9
4 changed files with 74 additions and 0 deletions

View File

@ -26,6 +26,13 @@
Constructs a [float] as a copy of the given [float].
</description>
</constructor>
<constructor name="float">
<return type="float" />
<param index="0" name="from" type="String" />
<description>
Converts a [String] to a [float], following the same rules as [method String.to_float].
</description>
</constructor>
<constructor name="float">
<return type="float" />
<param index="0" name="from" type="bool" />