mirror of
https://github.com/10h30/odin-javascript-exercises.git
synced 2026-06-05 15:09:09 +09:00
13 lines
212 B
JavaScript
13 lines
212 B
JavaScript
const ftoc = function (f) {
|
|
return Math.round((f - 32) * (5 / 9) * 10) / 10;
|
|
};
|
|
|
|
const ctof = function (c) {
|
|
return Math.round(((c * 9) / 5 + 32) * 10) / 10;
|
|
};
|
|
|
|
module.exports = {
|
|
ftoc,
|
|
ctof,
|
|
};
|