Anonymous | Login | 02-27-2021 22:11 UTC |
Main | My View | View Issues | Change Log | Docs |
Viewing Issue Simple Details [ Jump to Notes ] | [ View Advanced ] [ Issue History ] [ Print ] | ||||||||
ID | Category | Severity | Reproducibility | Date Submitted | Last Update | ||||
0003133 | [Squeak] Kernel | minor | always | 02-27-06 12:21 | 07-23-06 12:49 | ||||
Reporter | pmm | View Status | public | ||||||
Assigned To | MarcusDenker | ||||||||
Priority | normal | Resolution | fixed | ||||||
Status | closed | Product Version | |||||||
Summary | 0003133: [BUG][FIX] Float>>#asIEEE32BitWord and #fromIEEE32Bit: | ||||||||
Description |
Float>>#asIEEE32BitWord and #fromIEEE32Bit: converte a Float to a 32bit IEEE 754 word and vice versa. I quote from the Float class comment (adjusted for 32bit): sign 1 bit exponent 8 bits with bias of 1023 (16r3FF) to produce an exponent in the range -1023 .. +1024 - 16r000: significand = 0: Float zero significand ~= 0: Denormalized number (exp = -1024, no hidden '1' bit) - 16r7FF: significand = 0: Infinity significand ~= 0: Not A Number (NaN) representation Note: this implies there are two inifites and zeros (positive and negative). However the two mentioned methods don't follow this specification. See the test changeset for examples. This is a problem for example if you put a Float in a FloatArray you might get a different Float back. |
||||||||
Additional Information | |||||||||
Attached Files |
![]() ![]() ![]() ![]() ![]() ![]() |
||||||||
|
Mantis 1.0.8[^]
Copyright © 2000 - 2007 Mantis Group
77 total queries executed. 41 unique queries executed. |