From c88b0d1ad2d4c5a297347a1b4764ca604341f2b8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Gustavo=20Garc=C3=ADa?= <49039545+AvisPhoenix@users.noreply.github.com> Date: Thu, 28 Mar 2019 16:25:53 -0600 Subject: [PATCH] Add farenheit to centrigrade Add a new function --- JavaScript/Functions.js | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/JavaScript/Functions.js b/JavaScript/Functions.js index d6d831b..f18ee5a 100644 --- a/JavaScript/Functions.js +++ b/JavaScript/Functions.js @@ -7,4 +7,8 @@ function returnSmallest(a, b) { } } -// Add your functions below this line :) ------------------------------------ \ No newline at end of file +// Add your functions below this line :) ------------------------------------ + +function fahrenheit2centrigrade(f) { + return ((f-32)*5.0)/9.0; +}