Skip to content

Commit fa0fb29

Browse files
committed
Editorial change: moving code to Custom_Floating_Point_Types package
1 parent 6d11cb0 commit fa0fb29

File tree

1 file changed

+10
-3
lines changed

1 file changed

+10
-3
lines changed

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

Lines changed: 10 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2463,9 +2463,7 @@ still select a 32-bit floating-point type for the target platform. For example:
24632463

24642464
.. code:: ada run_button project=Courses.Advanced_Ada.Data_Types.Numerics.Floating_Point_Types.Floating_Point_Decimal_Precision
24652465

2466-
with Ada.Text_IO; use Ada.Text_IO;
2467-
2468-
procedure Show_Decimal_Digits is
2466+
package Custom_Floating_Point_Types is
24692467

24702468
type Float_1_Digits is
24712469
digits 1;
@@ -2503,6 +2501,15 @@ still select a 32-bit floating-point type for the target platform. For example:
25032501
digits 17;
25042502
type Float_18_Digits is
25052503
digits 18;
2504+
2505+
end Custom_Floating_Point_Types;
2506+
2507+
with Ada.Text_IO; use Ada.Text_IO;
2508+
2509+
with Custom_Floating_Point_Types;
2510+
use Custom_Floating_Point_Types;
2511+
2512+
procedure Show_Decimal_Digits is
25062513
begin
25072514
Put_Line ("Float_1_Digits'Size :"
25082515
& Float_1_Digits'Size'Image

0 commit comments

Comments
 (0)