Hi

I found that FloatArray>>at:put: is inaccurate:

| floats |
floats := FloatArray new: 1.
floats at: 1 put: 11.22321.
floats at: 1 " ------------> 11.223210334777832 "


Do you know this issue?


This is the implementation of at:put::

at: index put: value
    <primitive: 'primitiveAtPut' module: 'FloatArrayPlugin'>
    value isFloat
        ifTrue:[self basicAt: index put: value asIEEE32BitWord]
        ifFalse:[self at: index put: value asFloat].
    ^value

Thanks in advance
Martin

Reply via email to