Skip to content

Instantly share code, notes, and snippets.

@gbrits
Created October 15, 2020 11:31
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save gbrits/658c188199cc9dc2882580687d9f34b7 to your computer and use it in GitHub Desktop.
Save gbrits/658c188199cc9dc2882580687d9f34b7 to your computer and use it in GitHub Desktop.
Kelvin to Celsius (Javascript)
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