Format value

edited November 2009 in FastReport 4.0
I have value from DataSet - 1.123456
Memo's format is set to %2.6f
But after print I get - 1.123500

WHY ?

Comments

  • gordkgordk St.Catherines On. Canada.
    edited 4:16AM
    good question works fine for me. fr4.8.27 d2006, d2010
    so what FR version and build are you using?
  • edited November 2009
    I use FR ver. 4.6.5 and Delphi 7 and ADOQuery,
    but I tried a version of 4.8.29
    and is the same.



    Please try something like that:
    ADOQuery component:
    if DS_cplm.Active then DS_cplm.Close;                                                       
        DS_cplm.SQL.Clear;            
        DS_cplm.SQL.Add('SELECT 1.123456 AS number);                            
         DS_cplm.Open;
    
     Memo19.Text:= <DS_CPLM."number">      <-- here I have 1.1235
    
  • edited 4:16AM
    Please, I'm waiting for the answer !
  • Anu de DeusAnu de Deus Hampshire, UK
    edited February 2010
    1- Get the latest version, 4.9.xxx from today (KEEP A COPY OF THE INSTALLER FOR THE VERSION YOU ARE USING NOW, because if 4.9.xxx introduces any bugs for you, you can revert back)
    2- If it still doesn't work, open a support ticket for that, the reply usually comes in 1 or 2 days

Leave a Comment