Literals/Integer: Difference between revisions

Content deleted Content added
Line 1,545: Line 1,545:
FreePascal also supports:
FreePascal also supports:


hexadecimal ( with leading dollarsign )
hexadecimal (with leading dollar sign: $)
octal ( with leading ampersand ) and
octal (with leading ampersand: &) and
binary ( with leading percent sign ) literals:
binary (with leading percent sign: %) literals:
<lang Pascal>const
<lang Pascal>const


INT_VALUE = 15;
DEC_VALUE = 15;
HEX_VALUE = $F;
HEX_VALUE = $F;
OCTAL_VALUE = &017;
OCTAL_VALUE = &017;
BINARY_VALUE = %1111;</lang>
BINARY_VALUE = %1111;
</lang>


=={{header|Perl}}==
=={{header|Perl}}==