Autor Beitrag
Moritz M.
ontopic starontopic starontopic starontopic starontopic starhalf ontopic starofftopic starofftopic star
Beiträge: 1672



BeitragVerfasst: Mo 19.08.02 15:09 
Hi
Wenn Ich normal 1.5+1.5=3 Rechne geht das ja. ABer welche Typen muss ich dafür in Delphi definieren wenn jede der 3 Zahlen eine eigene Variable ist und muss ich bei der berechnung auf was besonderes achten?

cu

Onz
Ex0rzist
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starofftopic star
Beiträge: 550

Win XP Prof.
Mandrake 10.0

D6
BeitragVerfasst: Mo 19.08.02 15:13 
Hallo Onz,

du musst darauf achten, dass die Typen untereinander kompatibel sind.
Du kannst zum Beispiel nicht mit zwei Real-Variablen rechnen, wenn das Ergebnis vomTyp Integer ist.

Oder habe ich deine Frage falsch verstanden?

_____________

Ex0rzist
Moritz M. Threadstarter
ontopic starontopic starontopic starontopic starontopic starhalf ontopic starofftopic starofftopic star
Beiträge: 1672



BeitragVerfasst: Mo 19.08.02 15:25 
Ich galube schon..

Eigentlich wollte Ich den Type wissen, den ich für Dezimalzahlen(5,35242) deifnieren muss

cu

Onz
Ex0rzist
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starofftopic star
Beiträge: 550

Win XP Prof.
Mandrake 10.0

D6
BeitragVerfasst: Mo 19.08.02 15:35 
Achso, na dann wird dir das hier weiterhelfen.


____________

Ex0rzist
Steffer
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starontopic star
Beiträge: 299



BeitragVerfasst: Mo 19.08.02 15:48 
Schau mal in der Online-Hilfe nach "Reelle Typen" :wink:

_________________
Keine Signatur ...