Forum: Object-Pascal / Delphi-Language
Delphi
by NEPH1L1M,
7. Apr 2008
Danke für die copy :-D
Aber am Anfang der Hilfe steht das:
Formatiert einen Gleitkommawert.
Namespace
Borland.Vcl.SysUtils
Syntax
Forum: Object-Pascal / Delphi-Language
Delphi
by NEPH1L1M,
7. Apr 2008
Ich frag doch hier :?: - die Hilfe kann man überwiegend vergessen!
Forum: Object-Pascal / Delphi-Language
Delphi
by NEPH1L1M,
6. Apr 2008
FormatFloat('0.0#', -17.37777777777) = '-17,38'
D.h. ich muss das Ergebnis kennen - in deinem Bsp. -17.3777 - und dann umwandeln?
Nein oder?
Für -17,37777 muss ich dann wohl die Variablen-Bezeichnung eintragen ?
Für was steht das '0.0#' ?
Gruss Nephi
Forum: Object-Pascal / Delphi-Language
Delphi
by NEPH1L1M,
5. Apr 2008
Hallo Christian,
meinst du das hier:
Format Strings
A format string is an interpreted token that the NDR engine understands. Format strings are often referred to as MOPs; this documentation uses the term format string throughout.
To be more precise, a format character is an individual (atomic) interpretable token. Each format character is one byte in size. A format string is a...
Forum: Object-Pascal / Delphi-Language
Delphi
by NEPH1L1M,
4. Apr 2008
Hallo,
ich habe eigentlich eine banale Frage, aber trotz intensiver Suche habe ich hier noch nicht die passende Antwort gefunden.
Also von TurboPascal kenne ich noch den Befehl "write(Zahl:3:2)", um z.B. eine REAL-Variable mit 2 Stellen hinter dem Komma auszugeben. Wie mache ich das in Delphi ? Z.B. von einer Variable SINGLE ?
L,B,A1: integer; A2:single
A1:=l*b;
A2:=A1/100;...