Opened 4 years ago
Last modified 4 years ago
#290 new defect
binary and hex inspector extensions for LimitedPrecisionReal are wrongly padded
Reported by: | Owned by: | ||
---|---|---|---|
Priority: | major | Milestone: | |
Component: | default | Keywords: | Float inspect |
Cc: | Also affects CVS HEAD (eXept version): | no |
Description (last modified by )
inspectorExtraAttributes is using paddedTo:with: instead of leftPaddedTo:with:
It is demonstrated below with ShortFloat? (because examples are shorter).
(1.0 asShortFloat inspect) gives:
hex 3F800000 (correct)
binary 11111100 10000000 00000000 00000000
should be 00111111 10000000 00000000 00000000
(1.0+(1<<13) reciprocal + (1<<21) reciprocal) asShortFloat inspect
all indexed vars:
1 : 4
2 : 4
3 : 128
4 : 63
binary 11111100 10000000 10000000 10000000
should be 00111111 10000000 00000100 00000100
hex 3F804040
should be 3F800404
Note: See
TracTickets for help on using
tickets.