Ada Programming/Attributes/'Round

From Wikibooks, open books for an open world
Jump to navigation Jump to search

Description

[edit | edit source]

Fixed-point value obtained by rounding X (away from 0, if X is midway between two values).

The function returns the value obtained by rounding X (away from 0, if X is midway between two values of the type of S).

Example

[edit | edit source]
FRound (X) return S