[Ann] An online arithmetic calculator for Gemini

Luke Emmet luke at marmaladefoo.com
Sat Jun 6 22:16:43 BST 2020


Q: Did you leave your calculator at home before entering your 
Geminispace capsule?

Perhaps not, but in case you did, there is now a Gemini arithmetic 
calculator to get you out of your pickle.

This is another CGI test application - I wanted to test the process of 
getting input from the user.

The calculator itself:

=> gemini://gemini.marmaladefoo.com/cgi-bin/calc.cgi?0

You should be able to throw any simple arithmetic calculation at it, 
including brackets, scientific notation etc. It will try to help you out 
if you feed it nonsense or invalid input. It doesn't have any inbuilt 
functions like sine, or mathematical constants like e, i, pi though. So 
it's kinda basic, but fun.

There is also a short blog post walking through the high level logic

=> gemini://gemini.marmaladefoo.com/blog/6-Jun-2020_CGI_with_input.gmi

Best Wishes

  - Luke



More information about the Gemini mailing list