Quantcast
Channel: Answers for "mathf.round problem"
Browsing all 4 articles
Browse latest View live

Answer by Hellium

If you look at the documentation http://docs.unity3d.com/ScriptReference/Mathf.Round.html You will see that this function returns a float. Thus, there may be some imprecisions. I see two simple options...

View Article


Answer by Bunny83

The problem is most likely the order of execution of your code. You first display the current "clicks" number, then you round it, then you add the autoClicks. Since your autoClicks is multiplied by...

View Article


Answer by Hellium

If you look at the documentation http://docs.unity3d.com/ScriptReference/Mathf.Round.html You will see that this function returns a float. Thus, there may be some imprecisions. I see two simple options...

View Article

Answer by Bunny83

The problem is most likely the order of execution of your code. You first display the current "clicks" number, then you round it, then you add the autoClicks. Since your autoClicks is multiplied by...

View Article
Browsing all 4 articles
Browse latest View live


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