Skip to content
Merged
Changes from all commits
Commits
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
5 changes: 5 additions & 0 deletions content/courses/advanced-ada/parts/data_types/numerics.rst
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,9 @@ point. For example:
& Real_Literal'Image);
end Real_Integer_Literals;

In this example, :ada:`365` is an integer literal and :ada:`365.2564` is a
real literal.

Another classification takes the use of a base indicator into account.
(Remember that, when writing a literal such as :ada:`2#1011#`, the base is the
element before the first ``#`` sign.) So here we distinguish between decimal
Expand Down Expand Up @@ -431,6 +434,7 @@ is universal real:
-- ^
-- universal integer type
--
-- 3.1415926535
-- ^^^^^^^^^^^^
-- universal real type
--
Expand All @@ -457,6 +461,7 @@ the result is of universal real type:
-- ^
-- universal integer type
--
-- Pi
-- ^^
-- universal real type
--
Expand Down
Loading