Ada Programming/Attributes/'Exponent

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

Description

[edit | edit source]

Returns normalized exponent of the floating point argument.

For every subtype S of a floating point type T:

S'Exponent denotes a function with the following specification:

function S'Exponent (X : T) return universal_integer

The function yields the normalized exponent of X.

Example

[edit | edit source]
SExponent (X:T) return universal_integer