ToInt¶
Name | Mandatory | Description | Default | Type |
---|---|---|---|---|
⬅️ Input |
Takes input values of type Int , Float , String , or a collection of Int s and Float s. Note that the shard can only convert strings that represent numerical values, such as "5", and not words like "Five". |
Any |
||
Output ➡️ |
Outputs a numerical whole number without any fractional or decimal component. | Any |
Converts various input types to type Int.
Details¶
This shard typecasts float and string numeric values into the single integer data type (int
).
Examples¶
1 2 3 4 5 6 7 8 |
|
[info] [sample-wire] 1
[info] [sample-wire] 2
[info] [sample-wire] 3