Hi,
I've got an array of type float and when I initialise a number eg 9.04, it stores it as 9.03999996. Numbers are not exactly right, so why does this happen?
I'm using linux, gcc 3.4.6, and ddd if this has anything to do with it...
Cheers
Spiros
Hi,
I've got an array of type float and when I initialise a number eg 9.04, it stores it as 9.03999996. Numbers are not exactly right, so why does this happen?
I'm using linux, gcc 3.4.6, and ddd if this has anything to do with it...
Cheers
Spiros
Originally Posted by brewbuck:
Reimplementing a large system in another language to get a 25% performance boost is nonsense. It would be cheaper to just get a computer which is 25% faster.
cheers!, the section on compairing numbers was a real eye openerr!