Contents
Up
Previous
Next


Real and Integer types


New real and integer types can be defined with different ranges than the built-in real and integer types. The definition consists of a named range of values that an object of the new type can have.
direction : TO | DOWNTO 
range : attribute-name | 
  simple-expression direction simple-expression 
integer-type-definition : RANGE range
real-type-definition : RANGE range

The range and reverse_range attribute names are described in the next chapter. Notice that the integer and real type definitions look the same. The distinction is made by the range. A range RANGE 0 to 5 would be any integer range while RANGE 0.0 to 5.0 would be a real range.