Cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Pounds to kg conversion in Fitbit API

Replies are disabled for this topic. Start a new one or visit our Help Center.

Hi. We have a user that is having an issue when retrieving weight values that come through the Fitbit API.

 

The user enters 140.8lbs into Fitbit. This converts to 63.865806 kg. Via the API, we only get it rounded to one decimal place. So we get 63.8 as it appears that instead of rounding up, Fitbit just gives us the first decimal place as it exists.

If you then convert 63.8 kg back to pounds, you get 140.6549 lbs, which, when converted properly for display in the third party dashboard, gets rounded up to 140.7.
 
So, my question is, how does Fitbit do the pounds to kg conversion as it appears that the API should have contained 63.9 instead of 63.8.
 
Thanks in advance for assistance.
Best Answer
0 Votes
2 REPLIES 2

@MattDoc I believe it truncates the number, it doesn't round. That's why you'll get a discrepancy if you're pulling the data in kg then converting back to lbs. Is there a particular reason you're pulling the data in kg?

Andrew | Community Moderator, Fitbit

What motivates you?

Best Answer
0 Votes

We have similar complaints from users too. Any resolutions on this?

Best Answer
0 Votes