Autor Beitrag
Rag3
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starontopic star
Beiträge: 45



BeitragVerfasst: Do 07.04.05 19:52 
Hi,
ich benötige einen vergleich zwischen 2 Zahlen, aber nur in sachen Betrag, Vorzeichen soll hier keine Rolle spielen!
momentan hab ich das so gelöst:

ausblenden Delphi-Quelltext
1:
2:
while ((pos*pos)<(xanf*xanf))do
usw...


Gibt es da nocht eine direkte Möglichkeit?

mfg


Moderiert von user profile iconChristian S.: Topic aus Sonstiges verschoben am Do 07.04.2005 um 20:07
wulfskin
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic star
Beiträge: 1349
Erhaltene Danke: 1

Win XP
D5 Pers (SSL), D2005 Pro, C, C#
BeitragVerfasst: Do 07.04.05 19:59 
Versuchs mal mit Abs.

_________________
Manche antworten um ihren Beitragszähler zu erhöhen, andere um zu Helfen.
Kroni
ontopic starontopic starontopic starontopic starontopic starofftopic starofftopic starofftopic star
Beiträge: 720

Win 98, Win ME, Win2k, Win XP
D3 Pro
BeitragVerfasst: Do 07.04.05 19:59 
Betrag von 2 bzw -2 oder allgemein x:
ausblenden Delphi-Quelltext
1:
abs(X)					
Rag3 Threadstarter
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starontopic star
Beiträge: 45



BeitragVerfasst: Do 07.04.05 20:05 
thx, genau das, was ich suche! :D