Posts: 1,098
Threads: 14
Joined: Feb 2013
Reputation:
0
Please post the codes where you declare dx, dy and dz.. They must be floats
Posts: 1,534
Threads: 129
Joined: Jan 2012
Reputation:
0
What does ^ do? I think it's * ?
Posts: 8
Threads: 4
Joined: Dec 2013
Reputation:
0
xVIP3Rx
Floats
newbienoob:
that's should be exponentiation
Posts: 4,885
Threads: 57
Joined: Jun 2012
Reputation:
0
You want to use this.
floatsqroot(dx*dx + dy*dy + dz*dz)
or
floatsqroot(floatpower(dx, 2) + floatpower(dy, 2) + floatpower(dz, 2))