odin-javascript-exercises/tempConversion/tempConversion.js
2017-11-04 23:03:44 -05:00

12 lines
188 B
JavaScript

var ftoc = function(f) {
return Math.round((f - 32) * (5/9) * 10) / 10
}
var ctof = function(c) {
return Math.round(((c * 9/5) + 32) * 10) / 10
}
module.exports = {
ftoc,
ctof
}