Literals/Integer: Difference between revisions
Content deleted Content added
Line 1,545: | Line 1,545: | ||
FreePascal also supports: |
FreePascal also supports: |
||
hexadecimal ( |
hexadecimal (with leading dollar sign: $) |
||
octal ( |
octal (with leading ampersand: &) and |
||
binary ( |
binary (with leading percent sign: %) literals: |
||
<lang Pascal>const |
<lang Pascal>const |
||
DEC_VALUE = 15; |
|||
HEX_VALUE = $F; |
HEX_VALUE = $F; |
||
OCTAL_VALUE = &017; |
OCTAL_VALUE = &017; |
||
BINARY_VALUE = %1111; |
BINARY_VALUE = %1111; |
||
</lang> |
|||
=={{header|Perl}}== |
=={{header|Perl}}== |