Last active
August 2, 2020 22:16
-
-
Save karen-izuka/d0bf9cd006d6b389ec5a7e5e220d8a53 to your computer and use it in GitHub Desktop.
Converts the temperature in celsius to fahrenheit.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Celsius to Fahrenheit | |
description: Converts the temperature in celsius to fahrenheit. | |
host: EXCEL | |
api_set: {} | |
script: | |
content: | | |
/** | |
* Converts celsius to fahrenheit. | |
* @customfunction | |
* @param {number} celsius | |
* @returns the temperature in fahrenheit. | |
*/ | |
function c2f(celsius: number): number { | |
return (celsius * (9/5)) + 32; | |
} | |
language: typescript | |
libraries: | | |
https://appsforoffice.microsoft.com/lib/1/hosted/office.js | |
@types/office-js | |
core-js@2.4.1/client/core.min.js |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Temperature Converter | |
description: Converts the temperature in celsius to fahrenheit. | |
host: EXCEL | |
api_set: {} | |
script: | |
content: | | |
/** | |
* Converts celsius to fahrenheit. | |
* @customfunction | |
* @param {number} celsius | |
* @returns the temperature in fahrenheit. | |
*/ | |
function c2f(celsius: number): number { | |
return celsius * (9 / 5) + 32; | |
} | |
language: typescript | |
libraries: | | |
https://appsforoffice.microsoft.com/lib/1/hosted/office.js | |
@types/office-js | |
core-js@2.4.1/client/core.min.js |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment