Skip to content

ToInt

Name - Description Default Type
<input> Any
<output> Any

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
1 (ToInt) (Log)
(Assert.Is 1 :Break true)

2.2 (ToInt) (Log)
(Assert.Is 2 :Break true)

"3" (ToInt) (Log)
(Assert.Is 3 :Break true)
[info] [shards/General/ToInt/1.edn] 1
[info] [shards/General/ToInt/1.edn] 2
[info] [shards/General/ToInt/1.edn] 3