File tree Expand file tree Collapse file tree 1 file changed +10
-3
lines changed
content/courses/advanced-ada/parts/data_types Expand file tree Collapse file tree 1 file changed +10
-3
lines changed Original file line number Diff line number Diff 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
You can’t perform that action at this time.
0 commit comments