Skip to content

Commit 3c63f1c

Browse files
committed
Editorial change: minor additions to chapter on numerics
1 parent d129b43 commit 3c63f1c

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

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

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,9 @@ point. For example:
3131
& Real_Literal'Image);
3232
end Real_Integer_Literals;
3333

34+
In this example, :ada:`365` is an integer literal and :ada:`365.2564` is a
35+
real literal.
36+
3437
Another classification takes the use of a base indicator into account.
3538
(Remember that, when writing a literal such as :ada:`2#1011#`, the base is the
3639
element before the first ``#`` sign.) So here we distinguish between decimal
@@ -431,6 +434,7 @@ is universal real:
431434
-- ^
432435
-- universal integer type
433436
--
437+
-- 3.1415926535
434438
-- ^^^^^^^^^^^^
435439
-- universal real type
436440
--
@@ -457,6 +461,7 @@ the result is of universal real type:
457461
-- ^
458462
-- universal integer type
459463
--
464+
-- Pi
460465
-- ^^
461466
-- universal real type
462467
--

0 commit comments

Comments
 (0)