Greg's calculator - a terminal UI calculator inspired by galculator (GTK), implemented in Go with Bubble Tea. Features decimal math, base display cycling (DEC/HEX/BIN/OCT) with CERR on non-integers, tactile keypad, wide integrated display.
- float64 decimal math + classic entry buffer (in-progress digits visible) - CycleBase() with IsInteger() (epsilon) + ErrConversionNotPossible (CERR) - FormatForDisplay() for DEC/HEX/BIN/OCT (integer formatting for non-DEC) - Basic ops: + - * / and MOD (math.Mod) - Equals, SetOperator, EnterDigit/DecimalPoint, ClearEntry, AllClear, ChangeSign, Backspace - Comprehensive tests covering the critical CERR path (23/6, 1/3 + BASE) plus arithmetic and MOD This completes the pure engine. The engine is now usable by the upcoming TUI spike. Paper trail updated. |
||
|---|---|---|
| docs | ||
| internal | ||
| .gitignore | ||
| go.mod | ||
| main.go | ||
| Makefile | ||
| spec.md | ||