closed
Public

I want to set the value of a texteditbox using the value from another texteditbox and applying an arithmetic operation to the value.

For example when I try this:

[TextEditBox_1_1_1.value] / 2

the value shown in the texteditbox is:

0.50 / 2

but I wanted it to be numerically calculated as:

0.25

How do I do that?

1 answer

The value of the TextEditBox is a string instead of number, so you will need to make a temporary global property to store the number value, like this.

Using value < 1 may meet some problems, but you can multiple it with 10000 or more and then process it as integer…

#1

This question is now closed