ShareShortcuts

Hash Rate Converter

Use this Shortcut to quickly convert hash power from one unit to another

brihar73
Fork “Hash Rate Converter”

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 brihar73 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
73K
Saved
1
Actions
42
Category
Calculations
Version
1.0
Language
EN

Use this Shortcut to quickly convert hash power from one unit to another.

What's New

Version 1.0

First release

Version History
1.0 Dec 1, 2018

First release

What it does

42 actions
  1. Ask for Input
    Value
  2. Choose from Menu
    Unit
  3. Choose from Menu
    h/s
  4. Set Variable
    hs
  5. Choose from Menu
    KH/s
  6. Calculate
  7. Set Variable
    hs
  8. Choose from Menu
    MH/s
  9. Calculate
  10. Set Variable
    hs
  11. Choose from Menu
    GH/s
  12. Calculate
  13. Set Variable
    hs
  14. Choose from Menu
    TH/s
  15. Calculate
  16. Set Variable
    hs
  17. Choose from Menu
    PH/s
  18. Calculate
  19. Set Variable
    hs
  20. Choose from Menu
    EH/s
  21. Calculate
  22. Set Variable
    hs
  23. Choose from Menu
    ZH/s
  24. Calculate
  25. Set Variable
    hs
  26. Calculate
  27. Set Variable
    KHs
  28. Calculate
  29. Set Variable
    MHs
  30. Calculate
  31. Set Variable
    GHs
  32. Calculate
  33. Set Variable
    THs
  34. Calculate
  35. Set Variable
    PHs
  36. Calculate
  37. Set Variable
    EHs
  38. Calculate
  39. Set Variable
    ZHs
  40. Text
  41. Quick Look
  42. Stop This Shortcut

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 yellow
#define glyph calculator

prompt("Value", "Number")

menu "Unit" {
item "h/s":
	@hs = nil
item "KH/s":
	@hs = nil * 1000
item "MH/s":
	@hs = nil * 1e+06
item "GH/s":
	@hs = nil * 1e+09
item "TH/s":
	@hs = nil * 1e+12
item "PH/s":
	@hs = nil * 1e+15
item "EH/s":
	@hs = nil * 1e+18
item "ZH/s":
	@hs = nil * 1e+21
}
@KHs = nil / 1000
@MHs = nil / 1000
@GHs = nil / 1000
@THs = nil / 1000
@PHs = nil / 1000
@EHs = nil / 1000
@ZHs = nil / 1000
quicklook(nil)
stop()
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 brihar73

See All

You Might Also Like

See All
Advertisement