Thema: Delphi Division durch 0 -> NAN

Einzelnen Beitrag anzeigen

bassman

Registriert seit: 8. Apr 2008
18 Beiträge
 
Delphi 2009 Professional
 
#10

Re: Division durch 0 -> NAN

  Alt 28. Mai 2010, 16:00
Hallo Hans,

habe folgendes:

I think I gave you the wrong code. A clear bit allows the exception, a
set bit masks it. Try the following instead:

SetExceptionMask(GetExceptionMask - [exZeroDivide]);

Now it should give you a divide by zero error. What did Format('$%.4X',
[Get8087CW]) result in, in your case?

hier gefunden: https://forums.codegear.com/thread.j...ssageID=163649

Hoffe dies hilft dir weiter.

Gruss, Jörn
  Mit Zitat antworten Zitat