Skip to main content

bool

Overloads

NameDescription
bool(real value) -> boolConverts a real to a bool (identity function).
bool(bool value) -> boolConverts a bool to a bool (identity function).
bool(const complex value) -> boolConverts a complex to a bool.
bool(const string str) -> boolParses a string and converts it to a bool.
bool(integer value) -> boolConverts 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

Converts a complex to a bool.

Parameters

  • value: The complex value to convert.

bool(const string str) -> bool

Parses a string and converts it to a bool.

Parameters

bool(integer value) -> bool

Converts a integer to a bool (identity function).

Parameters

  • value: The value to convert.