411 REFERENCE · Wikibooks
Ada Programming/Attributes/'Digits
Reference material by Wikibooks contributors. This retains its source identity and is not 411 news reporting.
Attributes 'Digits
__TOC__
Description
X'Digits is an Ada attribute where X is any floating point type or decimal fixed point type. This attribute represents the number of decimal digits in the mantissa of type X.
Example
type My_Float is digits 10 range 0.0 .. 100.0;
...
Assert (My_Float'Digits = 10); OK
See also
Wikibook
Ada Programming
Ada Programming/Attributes
Ada Reference Manual
13 3 Operational and Representation Attributes
K Language-Defined Attributes
Digits