Delphi - Frac function losing precision.

Posted by PeteDaMeat on Stack Overflow See other posts from Stack Overflow or by PeteDaMeat
Published on 2010-03-16T12:40:13Z Indexed on 2010/03/16 12:56 UTC
Read the original article Hit count: 344

Filed under:
|
|
|

I have a TDateTime variable which is assigned a value at runtime of 40510.416667. When I extract the time to a TTime type variable using the Frac function, it sets it to 0.41666666666. Why has it changed the precision of the value and is there a workround to retain the precision from the original value ie. to set it to 0.416667.

© Stack Overflow or respective owner

Related posts about delphi-7

Related posts about tdatetime