Autor Beitrag
HoddeX
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starontopic star
Beiträge: 23



BeitragVerfasst: So 09.10.05 15:18 
Habe folgendes Problem, welches mich am fortkommen hindert.

warum ist folgendes nicht möglich?:
ausblenden Delphi-Quelltext
1:
bild.canvas.textout(20,357-29,FloatToStr(Zi div 1));					


das ist aber möglich:
ausblenden Delphi-Quelltext
1:
bild.canvas.textout(20,357-29,FloatToStr(Zi/1));					


Für schnelle Antworten bin ich äußerst Dankbar ;)

Moderiert von user profile iconraziel: Titel geändert.
Moderiert von user profile iconraziel: Topic aus Sonstiges verschoben am So 09.10.2005 um 19:08
WeBsPaCe
ontopic starontopic starontopic starontopic starontopic starhalf ontopic starofftopic starofftopic star
Beiträge: 2322
Erhaltene Danke: 1

FireFox 3, Internet Explorer 6 SP1
D1, D3Prof, D6Pers, D7Pers+Indy, VisualStudio Express
BeitragVerfasst: So 09.10.05 15:30 
Ich würde mal sagen, weil div für Integer gedacht ist und dir deshalb auch einen Integer-Wert "zurückgibt". FloatToStr ist eben nun mal für Float (wie der Name schon sagt) und wird deshalb keine Integer mögen. ;)

coucou,
WeBBy

_________________
Steht der Bauer im Gemüse, hat er später grüne Füße.
HoddeX Threadstarter
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starontopic star
Beiträge: 23



BeitragVerfasst: So 09.10.05 18:00 
Vielen Dank! Ich habe das ganze mit einem "trunc" lösen können, jetzt klappt es ;)