mirror of
https://github.com/TheAlgorithms/JavaScript.git
synced 2025-07-07 02:05:08 +08:00
Added BinaryToHex Conversion
This commit is contained in:
@ -40,8 +40,7 @@ const fahrenheitToRankine = (fahrenheit) => {
|
||||
const kelvinToCelsius = (kelvin) => {
|
||||
// Wikipedia reference: https://en.wikipedia.org/wiki/Kelvin
|
||||
// Wikipedia reference: https://en.wikipedia.org/wiki/Celsius
|
||||
return Math.round((kelvin) - 273.15)
|
||||
|
||||
return Math.round((kelvin) - 273.15)
|
||||
}
|
||||
|
||||
const kelvinToFahrenheit = (kelvin) => {
|
||||
@ -53,7 +52,7 @@ const kelvinToFahrenheit = (kelvin) => {
|
||||
const kelvinToRankine = (kelvin) => {
|
||||
// Wikipedia reference: https://en.wikipedia.org/wiki/Kelvin
|
||||
// Wikipedia reference: https://en.wikipedia.org/wiki/Rankine_scale
|
||||
return Math.round(( (kelvin) * 9 / 5))
|
||||
return Math.round(((kelvin) * 9 / 5))
|
||||
}
|
||||
|
||||
const rankineToCelsius = (rankine) => {
|
||||
|
Reference in New Issue
Block a user