View source code
Display the source code in std/numeric.d from which this
page was generated on github.
Report a bug
If you spot a problem with this page, click here to create a
Bugzilla issue.
Improve this page
Quickly fork, edit online, and submit a pull request for this page.
Requires a signed-in GitHub account. This works well for small changes.
If you'd like to make larger changes you may want to consider using
local clone.
Enum std.numeric.CustomFloatFlags
Format flags for CustomFloat.
enum CustomFloatFlags
: int { ... }
Enum members
Name | Description |
---|---|
allowDenorm
|
Stores the significand in IEEE754 denormalized form when the exponent is 0. Required to express the value 0. |
allowDenormZeroOnly
|
If set, 0 is the only allowed IEEE754 denormalized number. Requires allowDenorm and storeNormalized. |
ieee
|
Include all of the IEEE754 options. |
infinity
|
Allows the storage of IEEE754 infinity values. |
nan
|
Allows the storage of IEEE754 Not a Number values. |
negativeUnsigned
|
If set, unsigned custom floats are assumed to be negative. |
none
|
Include none of the above options. |
probability
|
If set, select an exponent bias such that max_exp = 1. i.e. so that the maximum value is >= 1.0 and < 2.0. Ignored if the exponent bias is manually specified. |
signed
|
Adds a sign bit to allow for signed numbers. |
storeNormalized
|
Store values in normalized form by default. The actual precision of the
significand is extended by 1 bit by assuming an implicit leading bit of 1
instead of 0. i.e. 1 instead of 0 .
True for all IEE754 types
|
Authors
Andrei Alexandrescu, Don Clugston, Robert Jacques, Ilya Yaroshenko
License
Copyright © 1999-2022 by the D Language Foundation | Page generated by ddox.