With the worry of crashes behind me its back to fixing some bugs. Is there a float to string conversion somewhere. I was using asString until I realized that as the number got small it converted it in exponent form. Using Selector Browser seems to confirm that there is no conversion for anything less than 0.0001.
Thanks Bob *** Confidentiality Notice *** Proprietary/Confidential Information belonging to CGI Group Inc. and its affiliates may be contained in this message. If you are not a recipient indicated or intended in this message (or responsible for delivery of this message to such person), or you think for any reason that this message may have been addressed to you in error, you may not use or copy or deliver this message to anyone else. In such case, you should destroy this message and are asked to notify the sender by reply email.
There's to ByteArray and back:
Float fromIEEE32Bit: 7.4 asIEEE32BitWord
--- "Cowdery, Bob [UK]" Bob.Cowdery@CGI-Europe.com wrote:
With the worry of crashes behind me its back to fixing some bugs. Is there a float to string conversion somewhere. I was using asString until I realized that as the number got small it converted it in exponent form. Using Selector Browser seems to confirm that there is no conversion for anything less than 0.0001.
Thanks Bob *** Confidentiality Notice *** Proprietary/Confidential Information belonging to CGI Group Inc. and its affiliates may be contained in this message. If you are not a recipient indicated or intended in this message (or responsible for delivery of this message to such person), or you think for any reason that this message may have been addressed to you in error, you may not use or copy or deliver this message to anyone else. In such case, you should destroy this message and are asked to notify the sender by reply email.
If you plan using denormalized numbers like 1.0e-316 (gradual underflow),
you'd better check patch at http://bugs.impara.de/view.php?id=3133 before processing with
fromIEEE32Bit: and asIEEE32BitWord
Nicolas
Chris Muller a écrit :
There's to ByteArray and back:
Float fromIEEE32Bit: 7.4 asIEEE32BitWord
--- "Cowdery, Bob [UK]" Bob.Cowdery@CGI-Europe.com wrote:
With the worry of crashes behind me its back to fixing some bugs. Is there a float to string conversion somewhere. I was using asString until I realized that as the number got small it converted it in exponent form. Using Selector Browser seems to confirm that there is no conversion for anything less than 0.0001.
Thanks Bob *** Confidentiality Notice *** Proprietary/Confidential Information belonging to CGI Group Inc. and its affiliates may be contained in this message. If you are not a recipient indicated or intended in this message (or responsible for delivery of this message to such person), or you think for any reason that this message may have been addressed to you in error, you may not use or copy or deliver this message to anyone else. In such case, you should destroy this message and are asked to notify the sender by reply email.
squeak-dev@lists.squeakfoundation.org