New content: add section on ordinary fixed-point types to Numerics - #1371
Open
gusthoff wants to merge 24 commits into
Open
Conversation
swbaird
reviewed
Jul 6, 2026
swbaird
left a comment
There was a problem hiding this comment.
Not approving because of check suppression misuse.
Add a comprehensive "Ordinary fixed-point types" section to the "Numerics" chapter of the "Advanced Ada" course.
Also: add admonition about fractional digits.
Move detail into an admonition
gusthoff
force-pushed
the
dev/topic/content/courses/advanced-ada/ordinary-fixed-point-types/2026-06-26
branch
from
July 31, 2026 14:32
fee1419 to
ebbd5ff
Compare
swbaird
approved these changes
Jul 31, 2026
swbaird
left a comment
There was a problem hiding this comment.
Looks good. I particularly like the new Fine_Delta section, and avoiding the use of unsafe check suppression.
| types are sometimes called binary fixed-point types. | ||
| In contrast, an ordinary fixed-point type's *small* is a power of two by | ||
| default. However, unlike for decimal fixed-point types |mdash| which always | ||
| use a power of ten |mdash| this isn't mandatory: if we use the :ada:`Small` |
There was a problem hiding this comment.
Perhaps "if we use the Small aspect" => "by specifying the Small aspect" ?
Not a big deal.
| its parent type; the only constraint allowed in a subtype declaration is a | ||
| range constraint. Unlike derived types, subtype objects are directly | ||
| interchangeable with the parent type |mdash| no explicit conversion is needed. | ||
| its parent type; the only non-obsolescent constraint allowed in a subtype |
There was a problem hiding this comment.
It might be better to not mention obsolescent precision constraints at all. Whatever you think is best.
|
|
||
| .. _Adv_Ada_Ordinary_Fixed_Point_System_Fine_Delta: | ||
|
|
||
| System.Fine_Delta |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
No description provided.