From 1aa0694ce62c118c7d679e1157cf42828a13fc35 Mon Sep 17 00:00:00 2001 From: gusthoff Date: Fri, 19 Sep 2025 16:19:29 +0200 Subject: [PATCH] Editorial change: minor additions to chapter on numerics --- content/courses/advanced-ada/parts/data_types/numerics.rst | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/content/courses/advanced-ada/parts/data_types/numerics.rst b/content/courses/advanced-ada/parts/data_types/numerics.rst index 46c3e60ed..429a83e68 100644 --- a/content/courses/advanced-ada/parts/data_types/numerics.rst +++ b/content/courses/advanced-ada/parts/data_types/numerics.rst @@ -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 @@ -431,6 +434,7 @@ is universal real: -- ^ -- universal integer type -- + -- 3.1415926535 -- ^^^^^^^^^^^^ -- universal real type -- @@ -457,6 +461,7 @@ the result is of universal real type: -- ^ -- universal integer type -- + -- Pi -- ^^ -- universal real type --