File tree Expand file tree Collapse file tree 1 file changed +5
-0
lines changed
content/courses/advanced-ada/parts/data_types Expand file tree Collapse file tree 1 file changed +5
-0
lines changed Original file line number Diff line number Diff line change @@ -31,6 +31,9 @@ point. For example:
31
31
& Real_Literal'Image);
32
32
end Real_Integer_Literals;
33
33
34
+ In this example, :ada: `365 ` is an integer literal and :ada: `365.2564 ` is a
35
+ real literal.
36
+
34
37
Another classification takes the use of a base indicator into account.
35
38
(Remember that, when writing a literal such as :ada: `2#1011# `, the base is the
36
39
element before the first ``# `` sign.) So here we distinguish between decimal
@@ -431,6 +434,7 @@ is universal real:
431
434
-- ^
432
435
-- universal integer type
433
436
--
437
+ -- 3.1415926535
434
438
-- ^^^^^^^^^^^^
435
439
-- universal real type
436
440
--
@@ -457,6 +461,7 @@ the result is of universal real type:
457
461
-- ^
458
462
-- universal integer type
459
463
--
464
+ -- Pi
460
465
-- ^^
461
466
-- universal real type
462
467
--
You can’t perform that action at this time.
0 commit comments