Autor Beitrag
Cookie007
ontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic starofftopic star
Beiträge: 96

win2000 / Xp / Linux9.3
Delphi7
BeitragVerfasst: Fr 28.04.06 15:48 
Hi leute wie geht das nochmal mit IntTostr usw (Aufbau)
und wie ist das Extendet kürzel!!!
danke

cookie 007

_________________
Mein System : A64 2400 Clawhammer, 1534 MB Ram, 200GB Festplatte, GeForce 6600 (Gigabyte)
Warum so ein langes Gesicht auf jede Frage gibt es eine Antwort, du musst sie nur suchen.(suchfunktion)
F34r0fTh3D4rk
ontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic starofftopic star
Beiträge: 5285
Erhaltene Danke: 29

Win Vista (32), Win 7 (64)
Eclipse, SciTE, Lazarus
BeitragVerfasst: Fr 28.04.06 15:49 
du meinst typumwandlungen ?

inttostr - integer in string umwandeln
strtoint - das gleiche andersherum

strtofloat - string in float umwandeln (extended, double etc)
floattostr - das gleiche andersherum

sonst brauch man nich mehr
Cookie007 Threadstarter
ontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic starofftopic star
Beiträge: 96

win2000 / Xp / Linux9.3
Delphi7
BeitragVerfasst: Fr 28.04.06 15:50 
ja richtig aber wie geht das noch mal mit edit1.text := inttofloat (Quelltext bitte!)

_________________
Mein System : A64 2400 Clawhammer, 1534 MB Ram, 200GB Festplatte, GeForce 6600 (Gigabyte)
Warum so ein langes Gesicht auf jede Frage gibt es eine Antwort, du musst sie nur suchen.(suchfunktion)
Hack Gott
ontopic starontopic starontopic starontopic starontopic starontopic starofftopic starofftopic star
Beiträge: 409

Windows Vista
Delphi 2005 Personal, Delphi 7
BeitragVerfasst: Fr 28.04.06 15:52 
ausblenden Delphi-Quelltext
1:
edit1.text := IntToStr('12');					


oder

ausblenden Delphi-Quelltext
1:
2:
randomize;
edit1.text := FloatToInt(IntToStr(random));


Moderiert von user profile iconChristian S.: Delphi-Tags hinzugefügt
F34r0fTh3D4rk
ontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic starofftopic star
Beiträge: 5285
Erhaltene Danke: 29

Win Vista (32), Win 7 (64)
Eclipse, SciTE, Lazarus
BeitragVerfasst: Fr 28.04.06 15:54 
FloatToInt ? wenns das überhaupt gibt, dann kommt da bestimmt kein string raus und randomize sollte nur in der initialization oder im oncreate EINMAL aufgerufen werden
Cookie007 Threadstarter
ontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic starofftopic star
Beiträge: 96

win2000 / Xp / Linux9.3
Delphi7
BeitragVerfasst: Fr 28.04.06 15:55 
ja es soll aber keine zahl generiert werden sondern eine eingegebene in EXTendet umgewandelt werden und dann zum wert einer variablen werden

_________________
Mein System : A64 2400 Clawhammer, 1534 MB Ram, 200GB Festplatte, GeForce 6600 (Gigabyte)
Warum so ein langes Gesicht auf jede Frage gibt es eine Antwort, du musst sie nur suchen.(suchfunktion)
Danniolo
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starofftopic star
Beiträge: 693



BeitragVerfasst: Fr 28.04.06 15:57 
ausblenden Delphi-Quelltext
1:
blubb := StrToFlaot(Edit1.Text);					
F34r0fTh3D4rk
ontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic starofftopic star
Beiträge: 5285
Erhaltene Danke: 29

Win Vista (32), Win 7 (64)
Eclipse, SciTE, Lazarus
BeitragVerfasst: Fr 28.04.06 16:01 
ausblenden Delphi-Quelltext
1:
2:
3:
4:
5:
6:
7:
var
  zahl: single; //oder float, double, extended
  astr: string;
begin
  astr := '342123,4545';
  zahl := strtofloat(astr);
end;
aim65
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic star
Beiträge: 312

Win 9x, Win XP
Delphi 3pro, 7PE
BeitragVerfasst: Fr 28.04.06 19:56 
Kannst auch mal hier gucken (englisch):
www.delphibasics.co....gs&Sub=ConvsFrom

Definition des Dezimal-Trenners (falls interessant):
www.delphibasics.co....ame=DecimalSeparator