Many hyperlinks are disabled.
Use anonymous login
to enable hyperlinks.
Overview
Artifact ID: | b2939ea9be89372c32cb2f3498b5045b54f6c340 |
---|---|
Page Name: | Numerics |
Date: | 2017-12-27 16:12:40 |
Original User: | Entomy |
Parent: | a66803decca378af317c93ff16b59d4ff92fbfe2 (diff) |
Content
Implements a large number of useful numeric types that were, for various reasons, not included in Standard. I agree with the exclusion, and this package seeks to supplement the Standard numerics. Some key features:
- Natural, Positive, Negative, Even, and Odd subtypes for the standard Integer of all sizes. Even and Odd are achieved with Dynamic Predicates, and require Ada 2012.
- Predefined modular types based on their equivalent Integer types.
- Modulus and Remainder operators for fractional types.
- Truncate, Ceiling, and Floor, functions for fractional types.
Only arithmetic and properties are implemented here. Further math support belongs in Mathematics.