Board index » delphi » Floating Point Exceptions
Henrik Palmér
![]() Delphi Developer |
Mon, 11 Feb 2002 03:00:00 GMT
Floating Point Exceptions
Greetings All,
I have had this problem for quite some time, but still I see no way of My problem is trapping floating point exceptions without totally freezing interface type TCurveFunction = function(X: TFloat): TFloat; TCurve = class(TObject) { . . . } implementation function TCurve.GetResult(X: TFloat): TFloat; And it works fine, UNLESS TCurve.Curve is defined as (Y = 1 / X), (Y = ln X) I ran a test, where TCurve.Curve was defined as (Y = Sqrt(X)). In a negative How can this be? |