DisplayFormat property bug? lazarus / 16-Databases ---------------------------------------------------------------------- kpeters58 · 2013-04-08 19:49 Can anyone confirm this? TField's Displayformat '###,###,##0.00' displays doubles correctly if positive, negative numbers are displayed in TDBgrid incorrectly; i.e. -400 displays as ',-400.00'. Somehow the determination of whether the rightmost thousand separator should be shown goes awry when values are negative. V 1.1 SVN 39757 ---------------------------------------------------------------------- Lacak2 · 2013-04-09 06:38 Can you reproduce it with?: writeln(formatfloat('###,###,##0.00', -400.00)); What type is TField ? ftFloat, ftBcd or ? ---------------------------------------------------------------------- denver · 2013-04-09 11:49 You should use '###,###,##0.00;-###,###,#00.00' as Displayformat First one is positive number format and the format after ';' is for negative number .