Ada Programming/Attributes/'Delta
< Ada Programming < AttributesComputing » Computer Science » Computer Programming » Ada Programming

Description
X'Delta is an Ada attribute where X is any fixed point type. This attribute represents the delta specified in the type definition of X.
Example
type My_Fixed is delta 0.1 range 0.0 .. 100.0; pragma Assert (My_Fixed'Delta = 0.1); -- OK
See also
Wikibook
- Ada Programming
- Ada Programming/Attributes
- Ada Programming/Types/delta
- Ada Programming/Attributes/'Digits
Ada Reference Manual
- 13.3 Operational and Representation Attributes (Annotated)
- Annex K Language-Defined Attributes (Annotated)
This article is issued from Wikibooks. The text is licensed under Creative Commons - Attribution - Sharealike. Additional terms may apply for the media files.