company logo

Integer specification by size

Integer specification by size and precision is an ODABA specific extension, which allows defining integer values in terms of decimal values by defining size and precision. The size for an integer value defines the number of significant digits. The precision defines the number of positions behind the decimal point. Negative precision allows defining a decimal factor. Both, precision and positions describe the decimal presentation of the value, i.e. int(6,2) defines decimal numbers between -9999.99 and +9999.99. Nevertheless, integer values are stored as binary numbers.

Definition: 

int_spec := int_type [int_size]