Split integer


#1

Can someone tell me if there is a way to split an integer?
I have an integer, let’s say 18 and I want to split it so I get 1 and 8.
Thanks and regards


#2

Hi @Jsandell,

char[] characters = 18.ToString().ToCharArray()
characters(0)->you will get 1
characters(1)->you will get 8

Regards, Arivu :slight_smile:


#3

@Jsandell check attached file

Main.xaml (6.4 KB)


#4

@arivu96 @indra Perfect, thank you so much!