How can I check that value entered in text box is a integer or a decimal value
Why not using the “is string” and the “is number” block?
Yoshi
I would do something like this :
You check if when you round the number, the number change, so it’s decimal
No you just check like this if it’s a number or a string, that’s not what he asked for
You may want to use
well, if the user just text for example 28. without indicating something after coma, it will be shown as a decimal, while it’s not really isn’t it?
if there is a full stop then it is not a number.
Tested, try this
It should return true we there’s nothing after “.”
The guy that created the subject
He is OP:
Well, you didn’t know his name but posted the solution. O-Ok…
… I forgot already
Edit I thought it is another guy lololloolool
It was my mistake
There are multiple solutions and this is one of them:
That was what I think of first but eventually I realize that you can simply use text component.
However the number shd be 1 not 0
Well tested, and it works fine for me.
How??? I quite do not understand what was your mistake…
Don’t take this away from me
jk