411 REFERENCE · Wikibooks
Ada Programming/Attributes/'Machine Rounding
Reference material by Wikibooks contributors. This retains its source identity and is not 411 news reporting.
Description
Yields the integral value nearest to X.
The function yields the integral value nearest to X.
If X lies exactly halfway between two integers, one of those integers is returned, but which of them is returned is unspecified.
A zero result has the sign of X when S'Signed_Zeros is True.
This function provides access to the rounding behavior which is most efficient on the target processor.
Example
S’Machine_Rounding (X:T) return T