Autor Beitrag
delphinia
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starontopic star
Beiträge: 131

XP Pro Sp2
Delphi 5 Standard
BeitragVerfasst: Fr 11.02.05 10:26 
Hallo

wollte sowas hier rechnene aber das geht nicht
i Div 0.51872

warum nicht?
AXMD
ontopic starontopic starontopic starontopic starontopic starontopic starofftopic starofftopic star
Beiträge: 4006
Erhaltene Danke: 7

Windows 10 64 bit
C# (Visual Studio 2019 Express)
BeitragVerfasst: Fr 11.02.05 10:28 
div nimmt nur Integerwerte an.

ausblenden Delphi-Quelltext
1:
bla := Round(i / 0.51872)					


ergibt wieder einen Integer, wenn du das Round weglässt, muss bla Float sein.

AXMD