Bug 20262 – Page spec/property.html should mention, that mant_dig includes the (not saved) leading 1 of the mantissa.

Status
NEW
Severity
normal
Priority
P3
Component
dlang.org
Product
D
Version
D2
Platform
All
OS
All
Creation time
2019-10-02T17:33:57Z
Last change time
2024-12-15T15:25:22Z
Assigned to
No Owner
Creator
Berni
Moved to GitHub: dlang.org#4096 →

Comments

Comment #0 by dlang — 2019-10-02T17:33:57Z
CustomFloat!(5, 2).mant_dig should be 5, not 6. If storeNormalized is not set, it should be 4.
Comment #1 by dlang — 2019-10-02T18:39:52Z
Meanwhile I found out, that mant_dig is defined differently, than I thought - the leeding 1, that is not saved in IEEE floats, is counted too. Therefore I changed title and component of this bug report. The documentation should mention, that this 1 is counted.
Comment #2 by robert.schadek — 2024-12-15T15:25:22Z
THIS ISSUE HAS BEEN MOVED TO GITHUB https://github.com/dlang/dlang.org/issues/4096 DO NOT COMMENT HERE ANYMORE, NOBODY WILL SEE IT, THIS ISSUE HAS BEEN MOVED TO GITHUB