Scan with your iPhone to install
Preview
Convert between Celsius (°C) and Fahrenheit (°F)
What's New
Version 1.0
First release
What it does
14 actions-
CommentAuthor: Ari R. Abdulla - Convert between Celsius (°C) and Fahrenheit (°F)
-
Choose from Menu
-
Choose from Menu°C to °F
-
Ask for Input°C?
-
Calculate
-
Calculate
-
Format Number
-
Show Result
-
Choose from Menu°F to °C
-
Ask for Input°F?
-
Calculate
-
Calculate
-
Format Number
-
Show Result
View as code
Every action of this Shortcut written out as Cherri, a programming language for Shortcuts. Great for learning how it works.
#define color blue
#define glyph thermometer
/*
Author: Ari R. Abdulla
- Convert between Celsius (°C) and Fahrenheit (°F)
*/
menu nil {
item "°C to °F":
const ProvidedInput = prompt("°C?", "Number")
const CalculationResult = ProvidedInput * 1.8
const CalculationResult1 = CalculationResult + 32
formatNumber(CalculationResult1, 1)
show("{ProvidedInput} °C is {} °F")
item "°F to °C":
const ProvidedInput1 = prompt("°F?", "Number")
const CalculationResult2 = ProvidedInput1 - 32
const CalculationResult3 = CalculationResult2 / 1.8
formatNumber(CalculationResult3, 1)
show("{ProvidedInput1} °F is {} °C")
}
Open in Cherri Playground
Decompiled with cherri 2.3.0 (GPL-2.0). May need small fixes before it compiles.
Ratings & Reviews
Write a Review–
out of 5
★★★★★
★★★★
★★★
★★
★
0 ratings
No reviews yet. Be the first to share what you think!
Advertisement
More by arirafiq
You Might Also Like
Advertisement