Casting methods.
A set of methods to help with casting for the following object types.
_bool()
Casting to a boolean.
- Name
this
- Type
- object
- Description
Any object of type bool, string, float, or int.
- Name
returns
- Type
- bool
- Description
A boolean value.
_float()
Casting to a float.
- Name
this
- Type
- object
- Description
Any object of type bool, string, float, or int.
- Name
precision
- Type
- int
- Description
Decimal places to which the number will be rounded. Optional.
- Name
returns
- Type
- float
- Description
A floating point number.
_int()
Casting to an integer.
- Name
this
- Type
- object
- Description
Any object of type bool, string, float, or int.
- Name
returns
- Type
- int
- Description
An integer number.
_clr()
Cast to a color using a "|" separated string of RGBT values.
- Name
this
- Type
- string
- Description
Any object of type string.
- Name
returns
- Type
- color
- Description
A color value.
_colorFromString()
Cast to a color using a "|" separated string of RGBT values.
- Name
this
- Type
- string
- Description
Any object of type string.
- Name
returns
- Type
- color
- Description
A color value.
_str()
Casting to a string.
- Name
this
- Type
- object
- Description
Any object of type bool, string, float, int, or color.
- Name
returns
- Type
- string
- Description
A string value.
_colorToString()
Cast to a "|" separated string using the color's RGBT values.
- Name
this
- Type
- color
- Description
Any object of type color.
- Name
returns
- Type
- string
- Description
A string value.