Help - Search - Members - Calendar
Full Version: Format value
Fast Reports forum > Fast Reports Products > FastReport 4.0
pele
I have value from DataSet - 1.123456
Memo's format is set to %2.6f
But after print I get - 1.123500

WHY ?
gordk
good question works fine for me. fr4.8.27 d2006, d2010
so what FR version and build are you using?
pele
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:

CODE
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
pele
Please, I'm waiting for the answer !
Anu de Deus
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
This is a "lo-fi" version of our main content. To view the full version with more information, formatting and images, please click here.
Invision Power Board © 2001-2012 Invision Power Services, Inc.