Newsgroups : Borland : borland.public.delphi.rtl.win32 : 2008 Jul : Field.DisplayFormat wrong approximation !
| Subject: | Field.DisplayFormat wrong approximation ! |
| Posted by: | "Enrico Ghezzi" (enricoghez..@ghezzi.com) |
| Date: | Thu, 10 Jul 2008 16:51:20 |
Hi
i have a dbgrid with float field.
in the database there is : 7,895
i want 2 digit.
use this :
tblTabellaFieldFloat.DisplayFormat := '0,.##;-0,.##;0';
but the internal round is wrong.
Number 7,895 is viewed : 7,89
the correct is 7,90
WHY ?