Board index » delphi » Invalid Floating Point ... Notes
Max Douglas
![]() Delphi Developer |
Fri, 26 Nov 1999 03:00:00 GMT
Invalid Floating Point ... NotesHi, I've been getting a runtime error "Invalid floating point operation". The errors occured trying to exeute formatDateTime, or I looked around Dejanews for a solution. Others seemed to have had Maybe people already know the solution but I thought I'd post what Eventually (after many hours) I resolved my problem. For some reason Eg. In my case I had a const defined: I changed this to: This removed all double to TDateTime comparisons in my code. So basically, get rid of all the comparisons between double and Hopefully this will help someone else. Max |