Hi,
I've stumbled upon the following when importing a text file with floating points generated by a java application. The following one gives an invalid floating point operation when loading into a TFloatField
531.1861582473471
while the others don't give an exception:
529.9518191598611
534.4721380018583
Further testing showed that the fraction part .1861582 is still okay, but .18615824 isn't
now, I could solve this exception, by using Set8087CW to mask the exceptions while loading the file.
However I'm wondering why this exception is triggered in the first place. Is the fraction for that specific floating point invalid for Delphi and not for Java?
What is the issue behind this?
Thanks in advance!
I've stumbled upon the following when importing a text file with floating points generated by a java application. The following one gives an invalid floating point operation when loading into a TFloatField
531.1861582473471
while the others don't give an exception:
529.9518191598611
534.4721380018583
Further testing showed that the fraction part .1861582 is still okay, but .18615824 isn't
now, I could solve this exception, by using Set8087CW to mask the exceptions while loading the file.
However I'm wondering why this exception is triggered in the first place. Is the fraction for that specific floating point invalid for Delphi and not for Java?
What is the issue behind this?
Thanks in advance!