Skip to content

Instantly share code, notes, and snippets.

@karen-izuka
Last active August 2, 2020 22:16
Show Gist options
  • Save karen-izuka/d0bf9cd006d6b389ec5a7e5e220d8a53 to your computer and use it in GitHub Desktop.
Save karen-izuka/d0bf9cd006d6b389ec5a7e5e220d8a53 to your computer and use it in GitHub Desktop.
Converts the temperature in celsius to fahrenheit.
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
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