Sign in to follow this  
Scouting Ninja

The simple if X < 1 then x+=0.1 and I end up with X =1.01 bug

Recommended Posts

I don't think you're necessarily in the wrong here.

Thanks, however slicer4ever is right; it was bad design from my part. -_-

I redesigned it using the advice provided by fastcall22 and I still use the min() when I use random numbers with floats. Sticking with integers, then using multiplication on the end, solved a lot of my problems and even allows me to swap from RGB to HSV easy.

 

The advice and criticism is appreciated. ^_^

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

Sign in to follow this