IBO & Cents
Does anyone know why some report output would show $963,119.52 at one time
and $963,120.00 another time. Win98 SE PCs don't seem to have this problem,
but Win2K PCs do and it is not consistent on the Win2K PCs.
The RB component is DBText accessing a TIBOBCDField. Windows Regional
Settings for Currency are identical on both PCs. I'm using D6 and RB 7.01
!? TIA,
Steven S. Weston
and $963,120.00 another time. Win98 SE PCs don't seem to have this problem,
but Win2K PCs do and it is not consistent on the Win2K PCs.
The RB component is DBText accessing a TIBOBCDField. Windows Regional
Settings for Currency are identical on both PCs. I'm using D6 and RB 7.01
!? TIA,
Steven S. Weston
This discussion has been closed.
Comments
This is probably happening due to different processors. RB relies on Delphi
which relies on the Windows API to define the display format of a number. If
you would like to see where ReportBuilder sets the display format, check out
the ppDisplayFormat.pas file in the RBuilder\Source directory. Around Line
170 is a call to FloatToStr. Try making this call on different machines in
a simple Delphi project and see if there is a difference.
--
Nico Cizik
Digital Metaphors
http://www.digital-metaphors.com
IB as a result of different processors (AMD vs. Intel). Well, actually not
in IB, but calculated currency values are rounding up or down even though
all vars and columns are defined as Decimal(15, 2)!
Since it showed up in reports that users actually look at, we looked at RB
first. But, it's in the database and, worst of all, it's not consistent!
--
Steven S. Weston