ShareShortcuts

Percentage Calc

Shortcut that calculates percentages because I’m the lazyguy

Fork “Percentage Calc”

Built something new on top of this Shortcut? Share it as a fork: it becomes a Shortcut of your own, which you manage, and both pages link to each other so the original creator gets credit.

  1. 1Get the Shortcut and change it in the Shortcuts app. Give it a name of its own.
  2. 2Share it from the Shortcuts app and copy the iCloud link.
  3. 3Come back here, paste the link and describe what is different, e.g. “Added a step that uses Apple Intelligence to personalise the text.”
Downloads
75K
Saved
0
Actions
11
Category
Utilities
Version
1.0
Language
EN

Preview

Shortcut that calculates percentages because I’m the lazyguy.

What's New

Version 1.0

First release

Version History
1.0 Oct 5, 2018

First release

What it does

11 actions
  1. Comment
    Created by @chri6fx 😘 Thank you. Modified and posted on ShareShortcuts.com
  2. Ask for Input
    Number
  3. Set Variable
    LeftTerm
  4. Nothing
  5. Ask for Input
    %
  6. Set Variable
    RightTerm
  7. Get Variable
  8. Calculate
  9. Calculate
  10. Set Variable
    Result
  11. Show Result

View as code
Beta

Every action of this Shortcut written out as Cherri, a programming language for Shortcuts. Great for learning how it works.

#define color red
#define glyph calculator

/*
Created by @chri6fx 😘 Thank you. Modified and posted on ShareShortcuts.com 


*/
prompt("Number", "Number")
@LeftTerm = nil
nothing()
prompt("%", "Number")
@RightTerm = nil
// TODO: Get Variable not supported: Assign variable here to '@RightTerm'.
@Result = nil * @LeftTerm
show("{@LeftTerm} - {@RightTerm}% = {@Result}")
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
Oct 13, 2018
danielbahl

Pretty cool! This is a keeper in my Shortcuts Library 😎

Advertisement

You Might Also Like

See All
Advertisement