Ada Programming/Attributes/'Extended Wide Width
Appearance
Description
[edit | edit source]Returns the width for (sub)type T. T may be integer or enumeration type. All the parameters are optional. They are:
- Base : Number_Base := 10
- the base for which the width will be calculated.
- Based : Boolean := FALSE
- if TRUE, compute the width of the based format (e.g., 10#99#).
- Space_If_Positive : BOOLEAN := FALSE
- if TRUE, compute the width assuming that a positive integer will be preceded by a blank.
Example
[edit | edit source]T'EXTENDED_WIDE_WIDTH(Base, Based, Space_If_Positive)