Number Conversion into array form

I have a number 6 and I want to convert it into array-like {“1”, “2”, “3”,“4”,“5”,“6”} can any one suggest idea

1 Like

Hi @Arun_Pondhe

Try below code
int_arr=array.ConvertAll( your_String_array,function(x) integer.Parse(x))

For Ref

@Arun_Pondhe Check and See If this is what you need (1.5 KB)

The range function from enumerable will Help for this

Cint(“6”) will us convert a String 6 To int 6
Enumerable.range(1,6). toarray () will Return the Array 1,2,3,4,5,6 as integer

A conversion to a String Array ist possible as Well e.g Enumerable.range(1,6).select(function (x) x.tostring).toarray()


This wont convert correctly if it has space