Skip to content

fix: correct Kelvin to Fahrenheit conversion formula#567

Open
Vineshnayak wants to merge 1 commit intowasmerio:mainfrom
Vineshnayak:fix/kelvin-to-fahrenheit-formula
Open

fix: correct Kelvin to Fahrenheit conversion formula#567
Vineshnayak wants to merge 1 commit intowasmerio:mainfrom
Vineshnayak:fix/kelvin-to-fahrenheit-formula

Conversation

@Vineshnayak
Copy link
Copy Markdown

PR Title

Fix Kelvin to Fahrenheit conversion formula

Summary

Corrected the Kelvin to Fahrenheit conversion formula by replacing the incorrect multiplier (5/9) with the correct (9/5) value.

Description

The Kelvin to Fahrenheit conversion formula previously used the multiplier (5/9), which is incorrect for this conversion and belongs to the Celsius conversion formula.

The formula has now been corrected to use (9/5) so temperature values convert accurately.

Example:

  • 373.15K (boiling point of water) was previously giving approximately 2°F
  • Now it correctly gives 212°F

The changes are as follows:

  • Fixed incorrect multiplier in Kelvin to Fahrenheit conversion formula
  • Corrected temperature conversion output accuracy
  • Verified the formula using standard temperature values

Checks

in the repository

  • Made no changes that degrades the functioning of the repository
  • Gave each commit a better title (unlike updated README.md)

in the PR

  • Followed the format of the pull_request_template
  • Made the Pull Request in a small level (for the creator's wellfare)
  • Tested the changes you made

Thank You,

Vinesh nayak

The formula used (5/9) which is the Celsius-to-Fahrenheit multiplier.
The correct multiplier for K to °F is (9/5).
Example: 373.15K (boiling point) was giving ~2°F, now correctly gives 212°F.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant