Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations IamaSherpa on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

DBGrid shows single as double

Status
Not open for further replies.

Beejer

Programmer
Jul 31, 2005
2
US
Hello. I'm using Delphi 6.

The database field type is a single with precision of 7. The DataSet recognizes it as a float field with a default precision of 15. The DBGrid shows the values with a precision of 15.

For example, the value of ".2" shows in the DBGrid as "0.200000002980232".

Can I fix this at runtime (I need to use dynamic field components only)? Thanks.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top