Skip to content

Commit a9b5e65

Browse files
committed
basic-types: review
discrete: rephrase real: add note, rephrase
1 parent 9d6d96c commit a9b5e65

File tree

3 files changed

+11
-9
lines changed

3 files changed

+11
-9
lines changed

courses/fundamentals_of_ada/030_basic_types/02-discrete_numeric_types.rst

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@ Predefined Signed Integer Types
5555

5656
Portability not guaranteed
5757

58-
* But may be difficult to avoid
58+
* But usage may be difficult to avoid
5959

6060
---------------------------------
6161
Operators for Signed Integer Type
@@ -71,9 +71,9 @@ Operators for Signed Integer Type
7171

7272
.. note::
7373

74-
Exponentiation :ada:`**` result will be a signed integer
74+
Exponentiation (:ada:`**`) result will be a signed integer
7575

76-
- |rightarrow| power **must** be :ada:`Integer` ``>= 0``
76+
- So power **must** be :ada:`Integer` ``>= 0``
7777

7878
.. warning:: Division by zero |rightarrow| :ada:`Constraint_Error`
7979

courses/fundamentals_of_ada/030_basic_types/02-discrete_numeric_types_with_mod.rst

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@ Predefined Signed Integer Types
5555

5656
Portability not guaranteed
5757

58-
- But may be difficult to avoid
58+
- But usage may be difficult to avoid
5959

6060
---------------------------------
6161
Operators for Signed Integer Type
@@ -71,9 +71,9 @@ Operators for Signed Integer Type
7171

7272
.. note::
7373

74-
Exponentiation :ada:`**` result will be a signed integer
74+
Exponentiation (:ada:`**`) result will be a signed integer
7575

76-
- |rightarrow| power **must** be :ada:`Integer` ``>= 0``
76+
- So power **must** be :ada:`Integer` ``>= 0``
7777

7878
.. warning:: Division by zero |rightarrow| :ada:`Constraint_Error`
7979

courses/fundamentals_of_ada/030_basic_types/07-real_types.rst

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -82,7 +82,7 @@ Predefined Floating Point Types
8282

8383
It is best, and easy, to **avoid** predefined types
8484

85-
- Loss of **portability**
85+
- To keep **portability**
8686

8787
-------------------------------
8888
Floating Point Type Operators
@@ -96,9 +96,11 @@ Floating Point Type Operators
9696
:multiplying operator: :ada:`* | /`
9797
:highest precedence operator: :ada:`** | abs`
9898

99-
* *Note* on floating-point exponentiation ``**``
99+
.. note::
100100

101-
- Power must be :ada:`Integer`
101+
Exponentiation (:ada:`**`) result will be real
102+
103+
- So power must be :ada:`Integer`
102104

103105
+ Not possible to ask for root
104106
+ :ada:`X**0.5` |rightarrow| :ada:`sqrt (x)`

0 commit comments

Comments
 (0)