Board index » delphi » HELP:TDateTime bug(delphi 1.02)

HELP:TDateTime bug(delphi 1.02)

When entering a value into a TDateTime field(for instance
7000.5555555555), the returned value is slightly
different(7000.5555555497) Is this a bug or an undocumented feature :-) ?
Please contact me with a solution or a workaround Thanx Richard
dejon...@ggd.rotterdam.nl

-------------------==== Posted via Deja News ====-----------------------
      http://www.dejanews.com/     Search, Read, Post to Usenet

 

Re:HELP:TDateTime bug(delphi 1.02)


In article <886580691.203292...@dejanews.com>, dejon...@ggd.rotterdam.nl
writes:

Quote
>When entering a value into a TDateTime field(for instance
>7000.5555555555), the returned value is slightly
>different(7000.5555555497)

I presume you mean in a table ? When I put 7000.5555555555 int a TDateTime type
variable and display it with Format I get 7000.5555555555. Something odd is
going on somewhere. Check that at least doubles are used.

BTW EncodeDate() + EncodeTime() is a better way to get dates and times from
numbers.

Alan Lloyd
alangll...@aol.com

Re:HELP:TDateTime bug(delphi 1.02)


In article <886580691.203292...@dejanews.com>, dejon...@ggd.rotterdam.nl
writes:

Quote
>When entering a value into a TDateTime field(for instance
>7000.5555555555), the returned value is slightly
>different(7000.5555555497)

I presume you mean in a table ? When I put 7000.5555555555 int a TDateTime type
variable and display it with Format I get 7000.5555555555. Something odd is
going on somewhere. Check that at least doubles are used.

BTW EncodeDate() + EncodeTime() is a better way to get dates and times from
numbers.

Alan Lloyd
alangll...@aol.com

Re:HELP:TDateTime bug(delphi 1.02)


In article <886580691.203292...@dejanews.com>, dejon...@ggd.rotterdam.nl
writes:

Quote
>When entering a value into a TDateTime field(for instance
>7000.5555555555), the returned value is slightly
>different(7000.5555555497)

I presume you mean in a table ? When I put 7000.5555555555 int a TDateTime type
variable and display it with Format I get 7000.5555555555. Something odd is
going on somewhere. Check that at least doubles are used.

BTW EncodeDate() + EncodeTime() is a better way to get dates and times from
numbers.

Alan Lloyd
alangll...@aol.com

Re:HELP:TDateTime bug(delphi 1.02)


In article <886580691.203292...@dejanews.com>, dejon...@ggd.rotterdam.nl
writes:

Quote
>When entering a value into a TDateTime field(for instance
>7000.5555555555), the returned value is slightly
>different(7000.5555555497)

I presume you mean in a table ? When I put 7000.5555555555 int a TDateTime type
variable and display it with Format I get 7000.5555555555. Something odd is
going on somewhere. Check that at least doubles are used.

BTW EncodeDate() + EncodeTime() is a better way to get dates and times from
numbers.

Alan Lloyd
alangll...@aol.com

Re:HELP:TDateTime bug(delphi 1.02)


In article <886580691.203292...@dejanews.com>, dejon...@ggd.rotterdam.nl
writes:

Quote
>When entering a value into a TDateTime field(for instance
>7000.5555555555), the returned value is slightly
>different(7000.5555555497)

I presume you mean in a table ? When I put 7000.5555555555 int a TDateTime type
variable and display it with Format I get 7000.5555555555. Something odd is
going on somewhere. Check that at least doubles are used.

BTW EncodeDate() + EncodeTime() is a better way to get dates and times from
numbers.

Alan Lloyd
alangll...@aol.com

Re:HELP:TDateTime bug(delphi 1.02)


In article <886580691.203292...@dejanews.com>, dejon...@ggd.rotterdam.nl
writes:

Quote
>When entering a value into a TDateTime field(for instance
>7000.5555555555), the returned value is slightly
>different(7000.5555555497)

I presume you mean in a table ? When I put 7000.5555555555 int a TDateTime type
variable and display it with Format I get 7000.5555555555. Something odd is
going on somewhere. Check that at least doubles are used.

BTW EncodeDate() + EncodeTime() is a better way to get dates and times from
numbers.

Alan Lloyd
alangll...@aol.com

Re:HELP:TDateTime bug(delphi 1.02)


In article <886580691.203292...@dejanews.com>, dejon...@ggd.rotterdam.nl
writes:

Quote
>When entering a value into a TDateTime field(for instance
>7000.5555555555), the returned value is slightly
>different(7000.5555555497)

I presume you mean in a table ? When I put 7000.5555555555 int a TDateTime type
variable and display it with Format I get 7000.5555555555. Something odd is
going on somewhere. Check that at least doubles are used.

BTW EncodeDate() + EncodeTime() is a better way to get dates and times from
numbers.

Alan Lloyd
alangll...@aol.com

Re:HELP:TDateTime bug(delphi 1.02)


Soooorrrryyy, Soooorrrryyy, Soooorrrryyy,

AOL really got me into a good loop there <g>

Alan Lloyd
alangll...@aol.com

Other Threads