Autor Beitrag
hjl
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starontopic star
Beiträge: 22
Erhaltene Danke: 2

Windows 10 Enterprise (64 Bit)
Delphi 7, Delphi XE2, Delphi Berlin (10.1), Delphi Tokyo (10.2)
BeitragVerfasst: Di 13.04.21 12:34 
Gibt es die Möglichkeit, auf einer extended-Variablen den Wert -1.#QNAN abzufangen, d.h. abzufragen?
Es geht mir darum, Abstürze zu vermeiden.

Es ist für ein Delphi-Programm, programmiert auf Embarcadero Delphi 10.2 (Tokyo) in 64 Bit auf Windows 10.
Extended hat hier also 8 Bytes Größe.


Moderiert von user profile iconNarses: Topic aus Sonstiges (Delphi) verschoben am Di 13.04.2021 um 21:46
Th69
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starontopic star
Moderator
Beiträge: 4764
Erhaltene Danke: 1052

Win10
C#, C++ (VS 2017/19/22)
BeitragVerfasst: Di 13.04.21 13:36 
Das sollte mit IsNan gehen, s.a. IsNaN Function: Checks to see if a floating point number holds a real number.

Edit: Evtl. benötigst du auch (noch) IsInfinite?!

Für diesen Beitrag haben gedankt: hjl
hjl Threadstarter
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starontopic star
Beiträge: 22
Erhaltene Danke: 2

Windows 10 Enterprise (64 Bit)
Delphi 7, Delphi XE2, Delphi Berlin (10.1), Delphi Tokyo (10.2)
BeitragVerfasst: Di 13.04.21 15:04 
Das mit IsNAN(zahl) genügte mir schon, vielen Dank!

Moderiert von user profile iconTh69: Delphi-Tags hinzugefügt