Autor Beitrag
-delphin-
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starontopic star
Beiträge: 200



BeitragVerfasst: Do 23.06.05 14:50 
Gibt es eine Möglichkeit bei der Zeile A := (A / 2) eine Integervariable rauszubekommen? A ist vorher eine Integer Variable und nachher auch wieder, während der Division benötige ich aber Real bzw. Extended, es gibt aber keinen FLoatToInt Befehl...
Thx 4 Help :D

Moderiert von user profile iconTino: Titel geändert.
Moderiert von user profile iconTino: Topic aus Sonstiges verschoben am Fr 24.06.2005 um 09:37
-delphin- Threadstarter
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starontopic star
Beiträge: 200



BeitragVerfasst: Do 23.06.05 14:53 
mkay mit zwei anderen variablen von denen eine extended und eine string ist gehts oO problem erledigt =)
Asgar
ontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic starofftopic star
Beiträge: 160

XP Home Edition
D5
BeitragVerfasst: Do 23.06.05 15:00 
mit Integer geht es aber auch du must nur runden.

ausblenden Delphi-Quelltext
1:
a:= Round(a/2);					
uall@ogc
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starofftopic star
Beiträge: 1826
Erhaltene Danke: 11

Win 2000 & VMware
Delphi 3 Prof, Delphi 7 Prof
BeitragVerfasst: Do 23.06.05 15:15 
ausblenden Delphi-Quelltext
1:
2:
var a: integer;
a := a div 2;

_________________
wer andern eine grube gräbt hat ein grubengrabgerät
- oder einfach zu viel zeit