ShareShortcuts

Calculator

Calculate Fast!

mrlizard
Fork “Calculator”

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 mrlizard 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
39K
Saved
0
Actions
37
Category
Calculations
Version
1.1
Language
EN

Preview

Calculate Fast!

What's New

Version 1.1

new features

Version History
1.1 Aug 27, 2022

new features

1.0 Aug 26, 2022

First release

What it does

37 actions
  1. Choose from Menu
  2. Choose from Menu
    Add
  3. Ask for Input
    Add?
  4. Ask for Input
    Plus?
  5. Calculate
  6. Show Result
  7. Choose from Menu
    Subtract
  8. Ask for Input
    First Number?
  9. Ask for Input
    Subtract?
  10. Calculate
  11. Show Result
  12. Choose from Menu
    Divide
  13. Ask for Input
    First Number?
  14. Ask for Input
    Divide?
  15. Calculate
  16. Show Result
  17. Choose from Menu
    Mutilply
  18. Ask for Input
    First Number?
  19. Ask for Input
    Multiply?
  20. Calculate
  21. Show Result
  22. Choose from Menu
  23. Ask for Input
    What To Calculate?
  24. Calculate Expression
  25. Show Result
  26. Choose from Menu
  27. Ask for Input
    What To Round?
  28. Round Number
  29. Show Result
  30. Choose from Menu
  31. Ask for Input
    What To Round?
  32. Round Number
  33. Show Result
  34. Choose from Menu
  35. Ask for Input
    What To Calculate
  36. Calculate Statistics
  37. 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.

#include 'actions/math'
#define color taupe
#define glyph calculator


menu nil {
item "Add":
	const ProvidedInput = prompt("Add?", "Number")
	const ProvidedInput1 = prompt("Plus?", "Number")
	show()
item "Subtract":
	const ProvidedInput2 = prompt("First Number?", "Number")
	const ProvidedInput3 = prompt("Subtract?", "Number")
	show()
item "Divide":
	const ProvidedInput5 = prompt("First Number?", "Number")
	const ProvidedInput4 = prompt("Divide?", "Number")
	show()
item "Mutilply":
	const ProvidedInput6 = prompt("First Number?", "Number")
	const ProvidedInput7 = prompt("Multiply?", "Number")
	show()
item "Calculate Fast":
	prompt("What To Calculate?", "Text")
	show()
item "Round":
	const ProvidedInput8 = prompt("What To Round?", "Number")
	ceil(ProvidedInput8, Ask)
	show()
item "Round Advanced":
	const ProvidedInput9 = prompt("What To Round?", "Number")
	ceil(ProvidedInput9, Ask)
	show()
item "Calculate Statistics":
	const ProvidedInput10 = prompt("What To Calculate", "Number")
	statistic(Ask, nil)
	show()
}
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 mrlizard

See All

You Might Also Like

See All
Advertisement