Ada Programming/Attributes/'Modulus
Description
X'Modulus is an Ada attribute where X is any modular type. This returns the modulus of X.
Example
type Unsigned_Byte is mod 2**8; type Unsigned_Word is mod 2**16;pragmaAssert (Unsigned_Byte'Modulus = 256); -- OkpragmaAssert (Unsigned_Word'Modulus = 65536); -- Ok