Sign in Join
Wiki copytemporary

Dollar sign/fi

English · Français · Português · Suomi · Русский

$

ASCII:ssa merkkikoodi desimaalinen merkkikoodi 36 (tai heksadesimaalisena 24) on määritelty $ (dollarin merkiksi).

Pascal

Symbolia $, lausutaan “dollarin merkki”, käytetään Pascal ilmoittamaan että luku on heksadesimaali esityksessä.\

pascal
program dollarSignDemo(input, output, stderr);

var
    i: longint;

begin
    // '$' sekä '0x' tunnistetaan ReadLn: llä
    // heksadesimaalilukuna
    readStr('$24', i);
    writeLn(i);    // tulostaa  36
    writeLn(-$24); // tulostaa -36
end.

Valinnaisena esitetty luvun etumerkki on kirjoitettu $-mekin eteen.

Muut esiintymiset

FPC ja Delphi kääntäjissä dollarin merkkiä käytetään myös kääntäjälle annettavissa ohjeissa seuraavan muotoisena {$directive}.


From the Free Pascal wiki, page "Dollar sign/fi", as it stood on 2022-08-06 after a change by Kai Burghardt, 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.

Revision 3, last changed by WikiArchive .

Edited on wiki.freepascal.org by 2 people, 2018–2022

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.

WhenWhoWhat changed
DjzepiCreated page
Kai Burghardtresolve Category: Pages using deprecated enclose attributes (minor)

Talk about this page

Nobody has opened a bench for this page yet. Sign in to open one.