Zeos + Lazarus + Firebird - Numbers < 10 with 2 decimals
Posted: 16.09.2010, 02:50
Hi.
I'm newer with zeos in lazarus and firebird.
I've a table with a numeric (decial, float, double ...) field. I post into it a value less than 10 with a 2 (or more) decimals (p.e. 5.92) and the value is posted right in the table, but the control (aka TDBEdit, TDBGrid) doesn't reflect the correct value, it shows the value without last decimal. (p.e 5.92 -> 5.9). That doesn't occurr with values greater than or equal to 10.
I know I can play with precission in the field definition, but I'm developing a Database administration utility, and I open the tables dinamically.
Is that a bug? zeos 7 alpha has the same behavior than 6.6 stable.
What can i do to solve it ?
SQLdb works properly.
Thanks, regards from Spain.
(excuse my english)
I'm newer with zeos in lazarus and firebird.
I've a table with a numeric (decial, float, double ...) field. I post into it a value less than 10 with a 2 (or more) decimals (p.e. 5.92) and the value is posted right in the table, but the control (aka TDBEdit, TDBGrid) doesn't reflect the correct value, it shows the value without last decimal. (p.e 5.92 -> 5.9). That doesn't occurr with values greater than or equal to 10.
I know I can play with precission in the field definition, but I'm developing a Database administration utility, and I open the tables dinamically.
Is that a bug? zeos 7 alpha has the same behavior than 6.6 stable.
What can i do to solve it ?
SQLdb works properly.
Thanks, regards from Spain.
(excuse my english)