You need to be very careful with floating point numbers because they don't work like regular integers. Floating point numbers usually have extra bit fields that sometimes may produce unexpected results. I suggest you play around with floats to see the relationship.
No comments:
Post a Comment