Type Conversion¶
| Spice | |
|---|---|
Functions¶
toDouble¶
| Spice | |
|---|---|
Convert an int to a double
Parameters
| Name | Type | Description |
|---|---|---|
input |
int |
Int value |
Returns: double — Double value
toDouble¶
| Spice | |
|---|---|
Convert a short to a double
Parameters
| Name | Type | Description |
|---|---|---|
input |
short |
Short value |
Returns: double — Double value
toDouble¶
| Spice | |
|---|---|
Convert a long to a double
Parameters
| Name | Type | Description |
|---|---|---|
input |
long |
Long value |
Returns: double — Double value
toDouble¶
| Spice | |
|---|---|
Convert a byte to a double
Parameters
| Name | Type | Description |
|---|---|---|
input |
byte |
Byte value |
Returns: double — Double value
toDouble¶
| Spice | |
|---|---|
Convert a char to a double
Parameters
| Name | Type | Description |
|---|---|---|
input |
char |
Char value |
Returns: double — Double value
toDouble¶
| Spice | |
|---|---|
Convert a string to a double
Parameters
| Name | Type | Description |
|---|---|---|
input |
string |
String value |
Returns: double — Double value
toDouble¶
| Spice | |
|---|---|
Convert a bool to a double
Parameters
| Name | Type | Description |
|---|---|---|
input |
bool |
Bool value |
Returns: double — Double value
toInt¶
| Spice | |
|---|---|
Convert a double to an int
Parameters
| Name | Type | Description |
|---|---|---|
input |
double |
Double value |
Returns: int — Int value
toInt¶
| Spice | |
|---|---|
Convert a short to an int
Parameters
| Name | Type | Description |
|---|---|---|
input |
short |
Short value |
Returns: int — Int value
toInt¶
| Spice | |
|---|---|
Convert a long to an int
Parameters
| Name | Type | Description |
|---|---|---|
input |
long |
Long value |
Returns: int — Int value
toInt¶
| Spice | |
|---|---|
Convert a byte to an int
Parameters
| Name | Type | Description |
|---|---|---|
input |
byte |
Byte value |
Returns: int — Int value
toInt¶
| Spice | |
|---|---|
Convert a char to an int
Parameters
| Name | Type | Description |
|---|---|---|
input |
char |
Char value |
Returns: int — Int value
toInt¶
| Spice | |
|---|---|
Convert a string to an int
Parameters
| Name | Type | Description |
|---|---|---|
input |
string |
String value |
base |
int |
(default: 10) |
Returns: int — Int value
toInt¶
| Spice | |
|---|---|
Convert a bool to an int
Parameters
| Name | Type | Description |
|---|---|---|
input |
bool |
Bool value |
Returns: int — Int value
toShort¶
| Spice | |
|---|---|
Convert a double to a short
Parameters
| Name | Type | Description |
|---|---|---|
input |
double |
Double value |
Returns: short — Short value
toShort¶
| Spice | |
|---|---|
Convert an int to a short
Parameters
| Name | Type | Description |
|---|---|---|
input |
int |
Int value |
Returns: short — Short value
toShort¶
| Spice | |
|---|---|
Convert a long to a short
Parameters
| Name | Type | Description |
|---|---|---|
input |
long |
Long value |
Returns: short — Short value
toShort¶
| Spice | |
|---|---|
Convert a byte to a short
Parameters
| Name | Type | Description |
|---|---|---|
input |
byte |
Byte value |
Returns: short — Short value
toShort¶
| Spice | |
|---|---|
Convert a short to a short
Parameters
| Name | Type | Description |
|---|---|---|
input |
char |
Short value |
Returns: short — Short value
toShort¶
| Spice | |
|---|---|
Convert a string to a short
Parameters
| Name | Type | Description |
|---|---|---|
input |
string |
String value |
base |
int |
(default: 10) |
Returns: short — Short value
toShort¶
| Spice | |
|---|---|
Convert a bool to a short
Parameters
| Name | Type | Description |
|---|---|---|
input |
bool |
Bool value |
Returns: short — Short value
toLong¶
| Spice | |
|---|---|
Convert a double to a long
Parameters
| Name | Type | Description |
|---|---|---|
input |
double |
Double value |
Returns: long — Long value
toLong¶
| Spice | |
|---|---|
Convert an int to a long
Parameters
| Name | Type | Description |
|---|---|---|
input |
int |
Int value |
Returns: long — Long value
toLong¶
| Spice | |
|---|---|
Convert an short to a long
Parameters
| Name | Type | Description |
|---|---|---|
input |
short |
Short value |
Returns: long — Long value
toLong¶
| Spice | |
|---|---|
Convert a byte to a long
Parameters
| Name | Type | Description |
|---|---|---|
input |
byte |
Byte value |
Returns: long — Long value
toLong¶
| Spice | |
|---|---|
Convert a char to a long
Parameters
| Name | Type | Description |
|---|---|---|
input |
char |
Char value |
Returns: long — Long value
toLong¶
| Spice | |
|---|---|
Convert a string to a long
Parameters
| Name | Type | Description |
|---|---|---|
input |
string |
String value |
base |
int |
(default: 10) |
Returns: long — Long value
toLong¶
| Spice | |
|---|---|
Convert a bool to a long
Parameters
| Name | Type | Description |
|---|---|---|
input |
bool |
Bool value |
Returns: long — Long value
toByte¶
| Spice | |
|---|---|
Convert an int to a byte
Parameters
| Name | Type | Description |
|---|---|---|
input |
int |
Int value |
Returns: byte — Byte value
toByte¶
| Spice | |
|---|---|
Convert a short to a byte
Parameters
| Name | Type | Description |
|---|---|---|
input |
short |
Short value |
Returns: byte — Byte value
toByte¶
| Spice | |
|---|---|
Convert a long to a byte
Parameters
| Name | Type | Description |
|---|---|---|
input |
long |
Long value |
Returns: byte — Byte value
toByte¶
| Spice | |
|---|---|
Convert a char to a byte
Parameters
| Name | Type | Description |
|---|---|---|
input |
char |
Char value |
Returns: byte — Byte value
toByte¶
| Spice | |
|---|---|
Convert a string to a byte
Parameters
| Name | Type | Description |
|---|---|---|
input |
string |
String value |
base |
int |
(default: 10) |
Returns: byte — Byte value
toByte¶
| Spice | |
|---|---|
Convert a bool to a byte
Parameters
| Name | Type | Description |
|---|---|---|
input |
bool |
Bool value |
Returns: byte — Byte value
toChar¶
| Spice | |
|---|---|
Convert an int to a char
Parameters
| Name | Type | Description |
|---|---|---|
input |
int |
Int value |
Returns: char — Char value
toChar¶
| Spice | |
|---|---|
Convert a short to a char
Parameters
| Name | Type | Description |
|---|---|---|
input |
short |
Short value |
Returns: char — Char value
toChar¶
| Spice | |
|---|---|
Convert a long to a char
Parameters
| Name | Type | Description |
|---|---|---|
input |
long |
Long value |
Returns: char — Char value
toChar¶
| Spice | |
|---|---|
Convert a byte to a char
Parameters
| Name | Type | Description |
|---|---|---|
input |
byte |
Byte value |
Returns: char — Char value
toChar¶
| Spice | |
|---|---|
Convert a string to a char
Parameters
| Name | Type | Description |
|---|---|---|
input |
string |
String value |
Returns: char — Char value
toString¶
| Spice | |
|---|---|
Convert a double to a string
Parameters
| Name | Type | Description |
|---|---|---|
input |
double |
Double value |
Returns: String — String value
toString¶
| Spice | |
|---|---|
Convert an int to a string
Parameters
| Name | Type | Description |
|---|---|---|
input |
int |
Int value |
Returns: String — String value
toString¶
| Spice | |
|---|---|
Convert a short to a string
Parameters
| Name | Type | Description |
|---|---|---|
input |
short |
Short value |
Returns: String — String value
toString¶
| Spice | |
|---|---|
Convert a long to a string
Parameters
| Name | Type | Description |
|---|---|---|
input |
long |
Long value |
Returns: String — String value
toString¶
| Spice | |
|---|---|
Convert a byte to a string
Parameters
| Name | Type | Description |
|---|---|---|
input |
byte |
Byte value |
Returns: String — String value
toString¶
| Spice | |
|---|---|
Convert a char to a string
Parameters
| Name | Type | Description |
|---|---|---|
input |
char |
Char value |
Returns: String — String value
toString¶
| Spice | |
|---|---|
Convert a bool to a string
Parameters
| Name | Type | Description |
|---|---|---|
input |
bool |
Bool value |
Returns: string — String value
toBool¶
| Spice | |
|---|---|
Convert a double to a bool
Parameters
| Name | Type | Description |
|---|---|---|
input |
double |
Double value |
Returns: bool — Bool value
toBool¶
| Spice | |
|---|---|
Convert an int to a bool
Parameters
| Name | Type | Description |
|---|---|---|
input |
int |
Int value |
Returns: bool — Bool value
toBool¶
| Spice | |
|---|---|
Convert an short to a bool
Parameters
| Name | Type | Description |
|---|---|---|
input |
short |
Short value |
Returns: bool — Bool value
toBool¶
| Spice | |
|---|---|
Convert an long to a bool
Parameters
| Name | Type | Description |
|---|---|---|
input |
long |
Long value |
Returns: bool — Bool value
toBool¶
| Spice | |
|---|---|
Convert a byte to a bool
Parameters
| Name | Type | Description |
|---|---|---|
input |
byte |
Byte value |
Returns: bool — Bool value
toBool¶
| Spice | |
|---|---|
Convert a char to a bool
Parameters
| Name | Type | Description |
|---|---|---|
input |
char |
Char value |
Returns: bool — Bool value
toBool¶
| Spice | |
|---|---|
Convert a string to a bool
Parameters
| Name | Type | Description |
|---|---|---|
input |
string |
String value |
Returns: bool — Bool value