cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

Convert Integer to String Function

former_member184594
Active Contributor
0 Likes
15,116

I am trying to convert integer to string, but there is no such function. Or at least, I couldn't find one. There is conversion from float to string functions. However, there is no int to string.

Do you know how?

I found a workaround, but I am not sure if this is the right approach.

var int_tst = Convert.stringLength(string_tst);

var float_tst = int_tst + 0.0;

TEXT_2.setText(Convert.floatToString(float_tst,"#0"));

Thanks.

View Entire Topic
Former Member
0 Likes

In standard JavaScript, you'd just do int_tst.toString(). Does this function not work in Design Studio?

former_member184594
Active Contributor
0 Likes

Nope that doesn't work. It is interesting Design Studio doesn't have convert from int to string.