• Logbook Pro Mobile for iOS and Android get major updates and now available on the Apple App Store and Google Play. Be sure to update at your earliest convenience. For details click here.
  • Shop the Black Friday sale event only at https://www.nc-software.com and use coupon code BF26 at checkout for 15% off.

Round up error decimals

seabird

Well-known member
Joined
Feb 28, 2002
Messages
239
Location
Netherlands
Hi all,

having been a long time user I was making some alterations to how I display my logbook for myself (mysql/php) and exported my full logbook in csv. Since I log in minutes my 1:05h flight is entered as 1.08333333333333333333333

This is not a problem until now I have finally discovered something my OCD is struggling with. LBP and the excel calculation (time in - time out) are off by 5min (I know, I know, nobody cares). Initially this had me looking for an entry typo of some sort, to discover, it is most likely a rounding error.

How many decimals does LBP store? 1.083333 and 1.666667 will round up over time...
 
Hi Jacco,

Nice to hear from you! We store the raw values but display in tenths so it rounds up for display but never loses fidelity for analytics, summaries, etc.
Hi Neal, I actually wonder how many decimals it stores into the db. Since the "export" is a CSV created directly from the access db and not LBP. Meaning, I linked tblLog to get the values
access tblLog.png
 
Last edited:
Just wondering if I should change my regedit decimal settings or if it doesnt store all the digits meaning I should live with the rounding error
 
Back
Top