New Bug Reports/Feature Requests

Rainer Mohr mail at divelogs.de
Wed Feb 24 00:49:42 PST 2016


Am 24.02.16 um 07:42 schrieb Dirk Hohndel:
> On Wed, Feb 24, 2016 at 08:10:04AM +0200, Miika Turkia wrote:
>> On Wed, Feb 24, 2016 at 12:52 AM, Dirk Hohndel <dirk at hohndel.org> 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 don't...

Just entered a weight of 2.268 kilos in a dive at divelogs.de (which I 
do round to 2 digits, as I never thought a few grams would be of 
importance).
This results in 2.27 kilos in the database and diplays as exactly 5 lbs 
on the dive after setting my logbook to imperial. I have the feeling, 
that the dive had 2.3 kilos when it got into divelogs.de (as this would 
explain the 5.1 lbs). I don't do any additional rounding when reading 
the XML of the DLD files, so I'd like to check what got exported to 
divelogs.de

Richard, could you please give me a link to the dive? How did the dive 
get into divelogs.de? The exact path of where the dive went in its 
digital life would help figure out where the rounding got screwed up.

Thanks,
Rainer



More information about the subsurface mailing list