Simple math problem?
Hello friends
I need to implement the following
In a "Tex Box" income numbers, pressing the button, each of these numbers (separately) is loaded into an ARRAY.
What I do is the following
If I enter the following number "123456"
Is loaded into the array:
Set value at 0 to mid (TextBox.Text, 0.1)
Set value at 1 to mid (TextBox.Text, 1.1)
Set value at 2 to mid (TextBox.Text, 2.1)
Set value at March to mid (TextBox.Text, 3.1)
Keep the number of characters in a variable "Char"
system -> Set char to len (TextBox.Text)
And then be added together and divided by the total number of characters, where I apply the following
Text2 -> Set Text -> "Sum:" & (Array.At (0) + Array.At (1) Array.At (2) + Array.At (3) + Array.At (4)) / char
But I manage to find the result as it always shows me = 1
This is te .CAPX
https://dl.dropboxusercontent.com/u/19024090/Math.capx
In that I'm wrong?
Thank You