Bug 20263 – Wrong value for CustomFloat.min_exp

Status
RESOLVED
Resolution
FIXED
Severity
normal
Priority
P1
Component
phobos
Product
D
Version
D2
Platform
All
OS
All
Creation time
2019-10-02T17:42:22Z
Last change time
2019-10-20T16:38:22Z
Keywords
pull
Assigned to
No Owner
Creator
Berni

Comments

Comment #0 by dlang — 2019-10-02T17:42:22Z
CustomFloat!(5, 2).min_exp should be 0, not 4294967297.
Comment #1 by dlang — 2019-10-02T17:44:21Z
Sorry, should be 1, because 2^(1-1)=2^0=1 is minimum value.
Comment #2 by dlang-bot — 2019-10-17T16:21:38Z
@berni44 created dlang/phobos pull request #7236 "Fix Issue 20263 - Wrong value for CustomFloat.min_exp" fixing this issue: - Fix Issue 20263 - Wrong value for CustomFloat.min_exp https://github.com/dlang/phobos/pull/7236
Comment #3 by dlang-bot — 2019-10-20T16:38:22Z
dlang/phobos pull request #7236 "Fix Issue 20263 - Wrong value for CustomFloat.min_exp" was merged into master: - 3eac71f47decf281ef65561e18c9c4cbf29ba1dc by Bernhard Seckinger: Fix Issue 20263 - Wrong value for CustomFloat.min_exp https://github.com/dlang/phobos/pull/7236