Forget that last one. There was a rounding error, but not here.
The problem was actually here:
tProduct:=String(InvProduct;"&3")
In V13.5 I get 2.10e+2 when InvProduct is 210.5497748441
In V16R6 I get 2.11e+002.
So this has been fixed somewhere along the line.
Sorry for wasting bandwidth
Uist
On 24/08/2018 12:03, Uist Macdonald via 4D_Tech wrote:
Hi All
I have been updating a database from V13 to V16R6, and an eagle eyed
user spotted an apparent rounding error when converting a real to text.
When InvProduct is 210.5497748441
pInvProduct:=""+String(InvProduct;"###,###,###,###,##0")
In V13.5 this code gave : 211
In V16R6 you get 210.
So is String not rounding any more?
Has anybody else noticed this?
Uist Macdonald
--
Ceres Computer Consultants Ltd
**********************************************************************
4D Internet Users Group (4D iNUG)
Archive: http://lists.4d.com/archives.html
Options: https://lists.4d.com/mailman/options/4d_tech
Unsub: mailto:[email protected]
**********************************************************************