How can I convert text to "number"?

How can I convert text to "number"?

image

1 Like

Unclear what you mean / want:

grafik

Please read this first:

2 Likes

I want to convert "text of label 1(random integer)" to number format...

Such question already exists. Try searching before you post

1 Like

And again: unclear ...
Show examples and read the mentioned guide.

A number present in a text string will be treated as a number and not text.

2 Likes

Sorry, @Alaqmar_Bohori but I had tried that 2 weeks ago and it didn't work for me.

But it works, isn't it?
What did not work for you?

I have used this method in my app and have never faced any issues

2 weeks ago I and a few classmates tried using a string directly as a number. And it gave me an error message.

Could you show the error?

I want to

image

Label7(text) →  number        

How can I ?

I don't exactly remember, neither do I have any screenshots

Is there any specific reason to covert it to number? Because as I showed, all operations work good with a text string containing only numbers

text "17" → number "17"

How ????

... and again:

So where is the problem and what is the goal?

If you must:

image

but as previously said, the string will be treated as a number in mathematical operations. However, the number may be treated differently in (online databases) - e.g. firebase/mySQL/sqLite - but this will depend on how you transfer it.

3 Likes

May we know?

maybe you mean like this :

blocks

Or maybe something like this :

@mal_ju never mentioned comparing of the spelling and numeral of any number!
@Salman_Dev kindly do not go off topic