October 02, 2019 [Issue 20261] New: CustromFloat.epsilon yields infinity | ||||
---|---|---|---|---|
| ||||
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. -- |
Copyright © 1999-2021 by the D Language Foundation