$
In ASCII, the character code decimal 36 (or hexadecimal 24) is defined to be $ (dollar sign).
Pascal
editAs a PXSC extension, the symbol $, pronounced “dollar sign”, is used to indicate a hexadecimal base.
program dollarSignDemo(input, output, stderr);
var
i: longint;
begin
// '$' as well as '0x' are recognized by readLn
// as hexadecimal base prefixes
readStr('$24', i);
writeLn(i); // will print 36
writeLn(-$24); // will print -36
end.
An optional sign is written in front the base indicator.
other appearances
editFor FPC and Delphi compilers, the dollar sign appears in compiler directives of the form {$directive}.
| single characters | + (plus)
•
- (minus)
•
* (asterisk)
•
/ (slash)
= (equal)
•
> (greater than)
•
< (less than)
. (period)
•
: (colon)
•
; (semi colon)
^ (hat)
•
@ (at)
$ (dollar sign)
•
& (ampersand)
•
# (hash)
' (single quote) |
| character pairs |
|