Board index » delphi » Floating-point operation exception

Floating-point operation exception

Hi, my problem is 'Floating-point operation exception'.

Delphi3 OFTEN shows me the message where FormatDateTime, EncodeDate is used.

 

Re:Floating-point operation exception


Quote
m...@indi-tech.com wrote in message <6unhvs$fm...@news.kren.nm.kr>...
>Hi, my problem is 'Floating-point operation exception'.

>Delphi3 OFTEN shows me the message where FormatDateTime, EncodeDate is used.

If you're working with valid TDateTime values, could you post a code fragment
that shows the problem?

efg
_________________________________________
efg's Computer Lab:  http://infomaster.net/external/efg

Earl F. Glynn                 E-Mail:  EarlGl...@att.net
Overland Park, KS  USA

Re:Floating-point operation exception


In article <6uo191$...@bgtnsc03.worldnet.att.net>, Earl F. Glynn
<EarlGl...@att.net> writes
Quote
>m...@indi-tech.com wrote in message <6unhvs$fm...@news.kren.nm.kr>...
>>Hi, my problem is 'Floating-point operation exception'.

>>Delphi3 OFTEN shows me the message where FormatDateTime, EncodeDate is used.

>If you're working with valid TDateTime values, could you post a code fragment
>that shows the problem?

>efg
>_________________________________________
>efg's Computer Lab:  http://infomaster.net/external/efg

>Earl F. Glynn                 E-Mail:  EarlGl...@att.net
>Overland Park, KS  USA

You aren't by any chance working with MS Access are you? If you are and
open a table or do a query it disables Div by 0 or ln(negative number)
exceptions, instead returning a +inf,-inf or +NAN or -NAN respectively.

These values once 'in' your system will{*word*222}up the next database
operation or operations like trunc(1.4) and give floating point errors.
--
David H. Bolton

"Because I'm worth it"
(Remove spam from header if replying)

Other Threads