Calculating Number Values
Posted: Wed Dec 17, 2014 7:39 pm
I am trying to use numbers to in a calculation, but can't seem to get the RegEx right. So:
I set a number to (x), then I set a second number to (y). Then I try to calculate the numbers into a new number (z) and it doesn't calculate. I figure I have to be doing something wrong with the RegEx.
Example:
v.X = 5
v.Y = 10
In order to get a calculated sum of 50, I have tried:
v.Z = [v.X][*][v.Y]
v.Z = [v.X[*]v.Y]
v.Z = v.X[*]v.Y
v.Z = [v.X*v.Y]
In each example, I either get a return value of 5 (v.X), or 0. What am I doing wrong??
I set a number to (x), then I set a second number to (y). Then I try to calculate the numbers into a new number (z) and it doesn't calculate. I figure I have to be doing something wrong with the RegEx.
Example:
v.X = 5
v.Y = 10
In order to get a calculated sum of 50, I have tried:
v.Z = [v.X][*][v.Y]
v.Z = [v.X[*]v.Y]
v.Z = v.X[*]v.Y
v.Z = [v.X*v.Y]
In each example, I either get a return value of 5 (v.X), or 0. What am I doing wrong??