< Ada Programming < Attributes
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_Floatis
digits
10range
0.0 .. 100.0; ...pragma
Assert (My_Float'Digits = 10); -- OK
See also
Wikibook
Ada Reference Manual
This article is issued from Wikibooks. The text is licensed under Creative Commons - Attribution - Sharealike. Additional terms may apply for the media files.