odin-default-js-exercises/tempConversion/tempConversion.js

13 lines
188 B
JavaScript
Raw Normal View History

var ftoc = function(f) {
return Math.round((f - 32) * (5/9) * 10) / 10
2017-08-25 15:27:07 +00:00
}
var ctof = function(c) {
return Math.round(((c * 9/5) + 32) * 10) / 10
2017-08-25 15:27:07 +00:00
}
module.exports = {
ftoc,
ctof
}