-
Notifications
You must be signed in to change notification settings - Fork 391
adding calorie per hour power unit #1545
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: master
Are you sure you want to change the base?
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@lipchev I know you fixed some other calorie units earlier, could you look over these?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I did look over this (earlier) and frankly couldn't find any relation to the existing coefficients for the calorie and energy..
@Dnigor Could you express this in terms of the existing calorie coefficients (or explain why I cannot).. I assume there should be something
/ 3600
in the expression..There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Hi, I used https://convertlive.com/u/convert/watts/to/calories-per-hour
Calorie per hour is a power unit just like British thermal units per hour
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Ok I figured it out, it's the inverse of what I must have been doing before:
so the
859.8452279
seems to be the rounded expression of1 / (4.184 / 3600)
, which is ~860.420. I have no idea why the difference is so large, the converter is probably using the other definition of Calorie, but what I do know is that wouldn't trust an online converter that don't provide me with the rational form of the conversion coefficient. 😄There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Calorie should be an energy unit but we need a power unit - calorie per hour
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I know, I'm asking for an exact expression- meaning that things that don't have a terminating decimal result, such as
1/60
we'd like to keep as1/60
instead of rounding to0.016667
(at least as far as the json files are concerned).At the same time, we try to be consistent in the use of the same conversion coefficients, for quantities which have historically (usually) had different values, such as the Calorie or the BTU.
See #1393 for more details.
If haven't checked which variant of this (if any) the converter is using, but was hoping that you could elaborate (given that you probably know the domain better than me).
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@lipchev We checked the calorie definitions last time and I believe your coefficients is what we should use, if nothing else to be consistent since there are many definitions of calorie.
This PR should be adapted to our existing coefficients as you posted above.
For your reference:
859.845227859 is international calorie (IT)
860.4206500956 is thermochemical calorie (th)
https://www.translatorscafe.com/unit-converter/en-US/power/1-42/Vat-kalori%20(IT)/saat/
Wolfram says nutritional calorie is 0.8604 (presumably kilocalories)

Wolfram says thermal calories are:
860.4 cal_th/h (thermochemical calories per hour)
Aqua-calc confirms @lipchev 's coefficients