Preview
Find your percentage %
What's New
Version 1.0
First release
What it does
11 actions-
CommentAuthor: Ari R. Abdulla Find your percentage.
-
Ask for InputEnter your number
-
Ask for InputEnter your percentage %
-
Calculate
-
Calculate
-
Text
-
Choose from Menu…
-
Choose from MenuCopy Result
-
Copy to Clipboard
-
Choose from MenuExit
-
Nothing
View as code
Every action of this Shortcut written out as Cherri, a programming language for Shortcuts. Great for learning how it works.
#include 'actions/sharing'
#define color teal
#define glyph calculator
/*
Author: Ari R. Abdulla
Find your percentage.
*/
const Number = prompt("Enter your number", "Number")
const Percentage = prompt("Enter your percentage %", "Number")
const CalculationResult = Percentage / 100
const CalculationResult1 = CalculationResult * Number
menu {
item "Copy Result":
setClipboard(CalculationResult1)
item "Exit":
}
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