[BUG][3.2][Linux] Float arithmetic: Squeak<->C Float conversion problem?
Stephan Rudlof
squeak-dev at lists.squeakfoundation.org
Thu Oct 24 17:09:28 UTC 2002
"Bug"
"Wrong:"
| onePlusEpsilon epsilon |
onePlusEpsilon _ 1.0 basicAt: 2 put: 1; yourself.
epsilon _ onePlusEpsilon - 1.0.
epsilon = 0.0 -> true
"OK:"
| onePlusEpsilon |
onePlusEpsilon _ 1.0 basicAt: 2 put: 1; yourself.
onePlusEpsilon inspect
"and in the inspector"
self - 1.0 = 0.0 -> false
Very weired...
Squeak<->C Float conversion problem?
Greetings,
Stephan
--
Stephan Rudlof (sr at evolgo.de)
"Genius doesn't work on an assembly line basis.
You can't simply say, 'Today I will be brilliant.'"
-- Kirk, "The Ultimate Computer", stardate 4731.3
More information about the Squeak-dev
mailing list
|