Created
October 15, 2020 11:31
-
-
Save gbrits/658c188199cc9dc2882580687d9f34b7 to your computer and use it in GitHub Desktop.
Kelvin to Celsius (Javascript)
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
let kelvin = 288; // Or whatever kelvin | |
let celsius = ((5/9) * ((Math.floor((Number(kelvin)-273) * (9/5) + 32))-32)).toFixed(0) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment