Is there any valid reason for
8877.9 * 0.75 = 6658.425
to return false ?
I can see that although both numbers look equal as far as printString is concerned but their bits are different.
Thanks!
Moderators: Eric Clayberg, wembley, tc, Diane Engles, solveig
sharma.narender wrote:Is there any valid reason for
8877.9 * 0.75 = 6658.425
to return false ?
I can see that although both numbers look equal as far as printString is concerned but their bits are different.
Thanks!
PhotonDemon wrote:You are still fighting the same inaccuracy problem of floats. ... You can play around with ways to round your results but in the end I don't think you will be happy.
Return to VA Smalltalk 7.0, 7.5 & 8.0
Users browsing this forum: No registered users and 1 guest