Quantcast
Channel: Questions in topic: "measure"
Viewing all articles
Browse latest Browse all 91

How to get difference between two values

$
0
0
Ok. You guys know the good ol' useful: "if(Vector3.Distance(Pos1, Pos2) > Value)", right? Now I have a question. How in the world can I apply that same method to 2 simple floats or intigers? I have 2 floats in a script of mine. And I need to get the value difference between the two. It doesn't matter how large the floats may be. They both could be 10310 and 10350. But the difference between them would still be 40. So how do I get that value difference?

Viewing all articles
Browse latest Browse all 91

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>