On Wed, Feb 24, 2016 at 08:10:04AM +0200, Miika Turkia wrote: > On Wed, Feb 24, 2016 at 12:52 AM, Dirk Hohndel <[email protected]> wrote: > > On Tue, Feb 23, 2016 at 01:55:28PM -0500, Richard Houser wrote: > >> #4 Dives exported from subsurface to divelogs.de are now showing an > >> additional 0.1lb more than what they show in subsurface. > > > > Rounding error somewhere. Silly American pounds. > > Both Subsurface and divelogs.de work in metric units internally. I > just did a quick test and 5lb turns out to be 2.268 kg in Subsurface > and is displayed as 2.2 kg on the divelist. Divelogs.de displays this > as 2.3 kg (as is correct rounding). However, it seems that divelogs.de > uses this rounded number when displaying the imperial weight (5.1 > lbs). What has changed, I have no idea, but Rainer might be able to > clarify. (Us showing incorrect metric rounding is irrelevant regarding > divelogs.de import/export as we use the exact value in calculations > and export.)
That's odd, Rainer. Why would you convert the rounded value? I can see where our code is wrong and will fix the rounding on our side. That's what I get for using the convenient Qt functions instead of doing the display string conversion by hand :-) /D _______________________________________________ subsurface mailing list [email protected] http://lists.subsurface-divelog.org/cgi-bin/mailman/listinfo/subsurface
