Quantcast
Channel: Questions in topic: "javascipt"
Viewing all articles
Browse latest Browse all 1875

compare variables JS

$
0
0
hello there :) var a : float = System.Math.Round(1.23987, 2); var b : float = System.Math.Round(1.241, 2); if(a == b); { Debug.Log(a+" = "+b); } if(a != b); { Debug.Log(a+" != "+b); } in log i can see 1.24 = 1.24 and 1.24 != 1.24 at the same time. why is that?

Viewing all articles
Browse latest Browse all 1875

Latest Images

Trending Articles



Latest Images

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