Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
24 commits
Select commit Hold shift + click to select a range
e39f9e8
Editorial change: reusing subsection from Intro to Ada course
gusthoff Sep 5, 2025
2fa63f1
Editorial change: adding anchor
gusthoff Sep 5, 2025
5c05424
Reworked initial part of subsection on decimal types
gusthoff Sep 5, 2025
bc8d14b
Editorial change: adding anchor
gusthoff Sep 5, 2025
f3a8629
Reworked subsection on decimal precision of decimal fixed-point types
gusthoff Sep 5, 2025
d74506e
Editorial change: correcting project name in code example
gusthoff Oct 5, 2025
6f114e4
Editorial change: add subsection about scalar type attributes
gusthoff Dec 14, 2025
37f9848
Editorial change: add link to new section
gusthoff Dec 14, 2025
65d282e
Editorial changes: adding anchors
gusthoff Dec 14, 2025
53ecbbc
Editorial change: adding anchor
gusthoff Dec 14, 2025
65d4000
Editorial change: adding anchor
gusthoff Dec 14, 2025
0897da3
Adding new subsections about decimal fixed-point types
gusthoff Dec 14, 2025
c505869
Editorial changes: adding anchors
gusthoff Dec 14, 2025
d943c2e
Editorial changes: removing empty lines
gusthoff Dec 14, 2025
7c20e62
Editorial changes: minor fixes in code examples
gusthoff Dec 14, 2025
606b9f1
Adding small code example about currency conversion
gusthoff Dec 27, 2025
fe0f3b4
Editorial change: correcting grammar
gusthoff Jan 22, 2026
92010b5
Editorial change: yens => yen
gusthoff Jan 22, 2026
f8dc5d8
Editorial change: rename objects
gusthoff Jan 22, 2026
a330d92
Mentioning "delta = small" for decimal fixed-point types
gusthoff Jan 22, 2026
21352e1
Extending example with conversion to range-constrained floating-point…
gusthoff Jan 22, 2026
2f5ca65
Editorial change: adding word
gusthoff Jan 22, 2026
35df978
Editorial change: add todo item
gusthoff Jan 22, 2026
882a2fb
Improve comparison to floating-point types
gusthoff Jan 22, 2026
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -2552,6 +2552,12 @@ procedure.
Formal fixed-point types
~~~~~~~~~~~~~~~~~~~~~~~~

.. todo::

Discuss how attributes such as Digits, Delta, and Scale can be usefully
applied to generic formal fixed point types.


Simple generic package
^^^^^^^^^^^^^^^^^^^^^^

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -1477,6 +1477,8 @@ Attributes of decimal fixed-point types
The attributes presented in this subsection are only available for decimal
fixed-point types.

.. _Adv_Ada_Decimal_Fixed_Point_Type_Digits_Attribute:

Attribute: :ada:`Digits`
^^^^^^^^^^^^^^^^^^^^^^^^^

Expand Down Expand Up @@ -1507,6 +1509,8 @@ the value is two, which was used in the declaration of the :ada:`T3_D2`
subtype.


.. _Adv_Ada_Decimal_Fixed_Point_Type_Scale_Attribute:

Attribute: :ada:`Scale`
^^^^^^^^^^^^^^^^^^^^^^^^

Expand Down Expand Up @@ -1554,6 +1558,7 @@ In this example, we get the following values for the scales:
As you can see, the value of :ada:`Scale` is directly related to the *delta*
of the corresponding type declaration.

.. _Adv_Ada_Decimal_Fixed_Point_Type_Round_Attribute:

Attribute: :ada:`Round`
^^^^^^^^^^^^^^^^^^^^^^^^
Expand Down
Loading
Loading