Literals/Integer: Difference between revisions

m
Line 1,526:
See [[Literals/Integer#Delphi | Delphi]]
 
FreePascal also supports octal (with leading ampersand) and binary (with leading percent sigh) literals:
 
hexadecimal ( with leading dollarsign )
octal ( with leading ampersand ) and
binary ( with leading percent sign ) literals:
<lang Pascal>const
 
INT_VALUE = 15;
OCTAL_VALUE INT_VALUE = &017 15;
HEX_VALUE = $F;
BINARY_VALUE = %1111;</lang>
OCTAL_VALUE = &017;
BINARY_VALUE = %1111;</lang>
 
=={{header|Perl}}==
122

edits