Quantcast
Channel: Unity Forum
Viewing all articles
Browse latest Browse all 1466670

Very low floating point precision error?

$
0
0
I know floating points are precise to a point, but how come I'm having issues at only 4 places? Since ParticleSystem.Particle particles cannot be tracked or have components added to them I'm tracking them by size differences of 0.001f.

I'm printing the results and I see x.xx1 for most of them but a handful of them are x.xx0999999f. Is there a way to stop this rounding error? And why am I even having this error at such a low precision? Any help would be appreciated, thanks.

In case it matters,...

Very low floating point precision error?

Viewing all articles
Browse latest Browse all 1466670

Trending Articles



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