A simple yet powerful calculator built in Go that supports arbitrarily large numbers using math/big. Perform calculations like 100!, 2^100, √2, and high-precision division with ease. Comes with a clean web interface and a REST API.
- ✅ Addition, subtraction, multiplication, division, power, factorial, square root
- ✅ Supports very large numbers via
math/big - ✅ High precision arithmetic (512-bit precision)
- ✅ Modern, responsive UI with light/dark mode toggle
- ✅ REST API + HTML frontend
- ✅ Unit and integration tests
- ✅ CI with GitHub Actions
- ✅ Makefile for easy automation
git clone https://github.com/DanRulev/calculator.git
cd calculatorgo mod downloadgo run cmd/main.goOpen in your browser: 🔗 http://localhost:8080
- Go – Backend logic
- Gin – Web framework
- math/big – Arbitrary-precision arithmetic
- HTML/CSS/JavaScript – Frontend UI
- GitHub Actions – CI
- Makefile – Build automation
This project is licensed under the MIT License – see the LICENSE file for details.