View source code
Display the source code in dmd/target.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.

Struct dmd.target.Target.FPTypeProperties

Values representing all properties for floating point types

struct FPTypeProperties(T) ;

Fields

NameTypeDescription
dig d_int64number of decimal digits of precision
epsilon real_tsmallest increment to the value 1
infinity real_tinfinity value
mant_dig d_int64number of bits in mantissa
max real_tlargest representable value that's not infinity
max_10_exp d_int64maximum int value such that 10max_10_exp is representable
max_exp d_int64maximum int value such that 2max_exp-1 is representable
min_10_exp d_int64minimum int value such that 10min_10_exp is representable as a normalized value
min_exp d_int64minimum int value such that 2min_exp-1 is representable as a normalized value
min_normal real_tsmallest representable normalized value that's not 0
nan real_tNaN value

Authors

Walter Bright

License

Boost License 1.0