Skip to content

Commit d68b280

Browse files
committed
Adding small note on size of base types
1 parent 36e8b55 commit d68b280

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

content/courses/advanced-ada/parts/data_types/numerics.rst

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2584,6 +2584,10 @@ floating-point data types on the target hardware. However, as you might recall
25842584
from an earlier chapter, we can request specific sizes for custom types. We
25852585
discuss this topic next.
25862586

2587+
Note that, for the example above, the size of the type is equal to the size of
2588+
its base type, i.e. :ada:`Float_1_Digits'Size = Float_1_Digits'Base'Size`,
2589+
:ada:`Float_2_Digits'Size = Float_2_Digits'Base'Size`, and so on.
2590+
25872591

25882592
.. _Adv_Ada_Floating_Point_Type_Size:
25892593

0 commit comments

Comments
 (0)