Float fileds + Lazaurs + Firebird
Posted: 16.11.2012, 21:39
I've a table with a numeric (decial, float, double ...) field.
If I post a value divisible by 10 (10,20,...an so until 90), the liked TDBEdit shows 1,2,...9, in other cases, shows the actualy value 11,21,55,66...
If value has 1 or 2 decimals, the control rounds to iinteger (39,4->39 39,6->40->4).
if value >= 100 then it is showed in scientific notation, (100->1E2, 110>1,1
E2).
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.
And I do not want to use the field display format. (TFloatField(Fields).DisplayFormat := '0.00'; )
Is there any way to solve that?
Regards
If I post a value divisible by 10 (10,20,...an so until 90), the liked TDBEdit shows 1,2,...9, in other cases, shows the actualy value 11,21,55,66...
If value has 1 or 2 decimals, the control rounds to iinteger (39,4->39 39,6->40->4).
if value >= 100 then it is showed in scientific notation, (100->1E2, 110>1,1
E2).
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.
And I do not want to use the field display format. (TFloatField(Fields).DisplayFormat := '0.00'; )
Is there any way to solve that?
Regards