Label2.Caption := FormatCurr('$###,##0.00', trunc(v*100) * 0.01);
-ns
----- Original Message -----
Sent: Wednesday, April 25, 2001 7:49 AM
Subject: [DUG]: Currency Formats

Hi
 
Have a problem with consistency of reporting currency between two QR reports.
 
The value of QRExpr1 is 234345.675
 
One report assigns the currency value to a label caption as follows:
Label1.Caption := FormatCurr('$###,##0.00',QRExpr1.Value.dblResult * 1);
The printed result is $234,345.68
 
The other report prints QRExpr1 directly using a format mask set as follows:
    '$'###,##0.00
The printed result is $234,345.67
 
There is a good reason for the value of QRExpr1 to be assigned to a Label.
 
Can anyone explain why this is happening and how to fix it?
 
TIA
 
Mark

Reply via email to