Added BinaryToHex Conversion

This commit is contained in:
ddhira123
2021-10-14 19:34:10 +07:00
parent 5f601fac8d
commit 0f39167538
4 changed files with 81 additions and 4 deletions

View File

@ -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) => {