bool
Overloads
| Name | Description |
|---|---|
bool(real value) -> bool | Converts a real to a bool (identity function). |
bool(bool value) -> bool | Converts a bool to a bool (identity function). |
bool(const complex value) -> bool | Converts a complex to a bool. |
bool(const string str) -> bool | Parses a string and converts it to a bool. |
bool(integer value) -> bool | Converts a integer to a bool (identity function). |
bool(real value) -> bool
Converts a real to a bool (identity function).
Parameters
- value: The value to convert.
bool(bool value) -> bool
Converts a bool to a bool (identity function).
Parameters
- value: The value to convert.
bool(const complex value) -> bool
Parameters
- value: The complex value to convert.
bool(const string str) -> bool
Parses a string and converts it to a bool.
Parameters
- str: The string to convert.
bool(integer value) -> bool
Converts a integer to a bool (identity function).
Parameters
- value: The value to convert.