Numbers (numeric literals) can contain a decimal point. An alternate base (hex, octal, etc.) can be specified by following the base with the value between '#'. Hexadecimal letter characters can be in upper or lower case. Scientific notation is not yet supported.
=> ? 16#FFFF#
All numeric literals are of type univeral_numeric.
Characters are enclosed in single quotes. It must be only one character long.
Strings are enclosed in double quotes.
All string or character literals are of type universal_string.
Ada: In Ada, the number 5 is an integer and 5.0 is a float. Here they are both universal_numeric. In Ada, "hello" is a string and 'c' is a character. Both are universal_strings here.
|Back To Top|