Ada Programming/Attributes/'Mod
Appearance
Description
[edit | edit source]Will correctly convert any integer type to a given modular type (S), using wraparound semantics.
This function returns Arg mod S'Modulus, as a value of the type of S.
Example
[edit | edit source]S’Mod (X:T) return S