Ada Programming/Attributes/'Fore

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

Description

[edit | edit source]

Minimum number of characters needed before the decimal point.

S'Fore yields the minimum number of characters needed before the decimal point for the decimal representation of any value of the subtype S, assuming that the representation does not include an exponent, but includes a one-character prefix that is either a minus sign or a space. (

This minimum number does not include superfluous zeros or underlines, and is at least 2.)

The value of this attribute is of the type universal_integer.

Example

[edit | edit source]
SFore return universal_integer