mirror of
https://github.com/pybricks/pybricks-api.git
synced 2026-07-28 04:07:46 +00:00
ubuiltins: Document float.
This commit is contained in:
@@ -434,17 +434,15 @@ class float:
|
||||
...
|
||||
|
||||
def __init__(self, *args) -> None:
|
||||
"""float()
|
||||
float(x: Union[int, float, str])
|
||||
"""float(x=0.0)
|
||||
|
||||
Converts the argument to a floating point number.
|
||||
If no argument is given, this returns ``0.0``.
|
||||
Converts an object to a floating point number.
|
||||
|
||||
Arguments:
|
||||
x: Number or string that will be converted.
|
||||
x (int or float or str): Number or string to be converted.
|
||||
|
||||
Returns:
|
||||
The input argument ``x`` converted to a floating point number.
|
||||
The resulting floating point value.
|
||||
"""
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user