digitalmars.D.bugs - [Issue 20261] New: CustromFloat.epsilon yields infinity
- d-bugmail puremagic.com (18/18) Oct 02 2019 https://issues.dlang.org/show_bug.cgi?id=20261
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 puremagic.com Reporter: dlang 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. --
Oct 02 2019