diff options
author | kobewi <kobewi4e@gmail.com> | 2021-09-19 00:46:57 +0200 |
---|---|---|
committer | kobewi <kobewi4e@gmail.com> | 2022-09-19 14:31:16 +0200 |
commit | a43319b6c9c24ed9b88af336c74a4d60e76b6fc3 (patch) | |
tree | b49499423f42cd95e3a1ff3ecbdc90f687859b11 /doc | |
parent | 63c0dc690e06731224e88911ed16d1b798b681b5 (diff) |
Restore numeric from String constructors
Diffstat (limited to 'doc')
-rw-r--r-- | doc/classes/float.xml | 7 | ||||
-rw-r--r-- | doc/classes/int.xml | 7 |
2 files changed, 14 insertions, 0 deletions
diff --git a/doc/classes/float.xml b/doc/classes/float.xml index 9d685b9cd0..3a7e5881a6 100644 --- a/doc/classes/float.xml +++ b/doc/classes/float.xml @@ -28,6 +28,13 @@ </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" /> <description> 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. diff --git a/doc/classes/int.xml b/doc/classes/int.xml index 78e2e7d18f..da776d55ef 100644 --- a/doc/classes/int.xml +++ b/doc/classes/int.xml @@ -54,6 +54,13 @@ </constructor> <constructor name="int"> <return type="int" /> + <param index="0" name="from" type="String" /> + <description> + Converts a [String] to an [int], following the same rules as [method String.to_int]. + </description> + </constructor> + <constructor name="int"> + <return type="int" /> <param index="0" name="from" type="bool" /> <description> Cast a [bool] value to an integer value, [code]int(true)[/code] will be equals to 1 and [code]int(false)[/code] will be equals to 0. |