Dollar sign
English · Français · Português · Suomi · Русский
$
In ASCII, the character code decimal 36 (or hexadecimal 24) is defined to be $ (dollar sign).
Pascal
As 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
For FPC and Delphi compilers, the dollar sign appears in compiler directives of the form {$directive}.
From the Free Pascal wiki, page "Dollar sign", as it stood on 2024-02-28 after a change by Alextp, out of the wiki's dump of 2024-05-26. Copyright stays with the author who wrote it, according to the old wiki's Licensing page. If you have concerns about this material, message the admin.
Edited on wiki.freepascal.org by 5 people, 2008–2024
From the official wiki's backup of 26 May 2024: who edited this page there, and when. Edits made there after that date were not recorded, and the earlier versions are not shown here; the main page says why.
| When | Who | What changed |
|---|---|---|
| Djzepi | New page: <div style="float:left; margin: 0 25px 20px 0; padding:40px; font-size:500%; font-family: Georgia; background-color: #f9f9f9; border: 2px solid #777777;">$</div> The symbol $ (pronounce... | |
| Djzepi | ||
| E-ric | (minor) | |
| E-ric | (minor) | |
| E-ric | (minor) | |
| Kai Burghardt | bla | |
| Kai Burghardt | add Template:Symbols (minor) | |
| Bart | page layout (minor) | |
| Djzepi | ||
| Kai Burghardt | substitute legacy syntaxhighlight syntax (minor) | |
| Kai Burghardt | attribute origin of hex-base | |
| Alextp |
Talk about this page
Nobody has opened a bench for this page yet. Sign in to open one.
