Faculty of Information Technology
Software Engineering Group

Opened 3 months ago

Last modified 3 months ago

#291 new defect

LimitedPrecisionReal fmin subclassResponsibility not implemented

Reported by: nicolas.cellier.aka.nice@… Owned by:
Priority: major Milestone:
Component: default Keywords: Float fmin
Cc: Also affects CVS HEAD (eXept version): no

Description (last modified by nicolas.cellier.aka.nice@…)

I expect Float fmin to work.

Should it answer fminNormalized or fminDenormalized (gradual underflow)?

fminDenormalized is preferred for VW and Squeak compatibility, but LongFloat? might not have denormalized numbers...

fminNormalized should be (self unity timesTwoPower: self emin).
fminDenormalized should be (self unity timesTwoPower: self emin - self precision + 1).

I would test for denormalized support and answer fminDenormalized if true, this way no need for subclassResponsibility (or more exactly, subclassResponsibility would be defered to denormalized support testing)

Change History (1)

comment:1 Changed 3 months ago by nicolas.cellier.aka.nice@…

Description: modified (diff)
Note: See TracTickets for help on using tickets.