Skip to content

Integer

Declaring literals with arbitrary bases

Source

Integer literals can be expressed in the form base#value# for any base from 2 to 16 inclusive:

constant C_INT : integer := 16#38#;

Declaring literals with separators

Source

Underscores in integer literals are ignored:

constant C_INT : integer := 1_000;