Ada Programming/Attributes/'Digits
Appearance
Description
[edit | edit source]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
[edit | edit source]typeMy_Floatisdigits10range0.0 .. 100.0; ...pragmaAssert (My_Float'Digits = 10); -- OK
