[Issue 20261] New: CustromFloat.epsilon yields infinity
d-bugmail at puremagic.com
d-bugmail at puremagic.com
Wed Oct 2 16:50:14 UTC 2019
https://issues.dlang.org/show_bug.cgi?id=20261
Issue ID: 20261
Summary: CustromFloat.epsilon yields infinity
Product: D
Version: D2
Hardware: All
OS: All
Status: NEW
Severity: normal
Priority: P1
Component: phobos
Assignee: nobody at puremagic.com
Reporter: dlang at croco-puzzle.com
CustomFloat!(5, 2).epsilon yields infinity instead of expected 0.03125.
In my oppinion, if denormalized numbers are allowed, epsilon should just be
sign=0, exponent=0, significand=1. I don't know, how IEEE defines epsilon, if
denormalized numbers are not allowed.
--
More information about the Digitalmars-d-bugs
mailing list