Forum > General

Decimal issue in DBGrid with 32bit version

(1/1)

tcsorgo:
Hi,

I have written an application in Lazarus 1.8.2 (FPC:3.0.4) 64bit with SQLite database (3.23.1), which works well but if I compile this with Lazarus 1.8.2 32bit, than a strange thing happens with decimals in the DBGrid.
In 32bit version DBGrids show the floating numbers with a lot of decimals, although the same data in 64bit version and in the database has just a few decimals. See attached.
 
Do you have any idea why this happens or what I should check?

Thanks!

taazz:
play with the displayformat of the field, this should give you full control over number of decimal points.

tcsorgo:
thanks, it works!
Set to "0.####", numbers are shown correctly with both systems.

Navigation

[0] Message Index

Go to full version