aboutsummaryrefslogtreecommitdiffstats
path: root/calc.go
diff options
context:
space:
mode:
authorSam Anthony <sam@samanthony.xyz>2023-07-29 12:05:33 -0230
committerSam Anthony <sam@samanthony.xyz>2023-07-29 12:05:33 -0230
commit9b889ee09e7e6a4ffc257044aaf5334827759050 (patch)
tree8a4c22ae9ef8d62ef69b216de5ac941375b3f798 /calc.go
parent39d02975dc58830471ca86702e07533a43fc6424 (diff)
downloadpfc-9b889ee09e7e6a4ffc257044aaf5334827759050.zip
add padding to ui
Diffstat (limited to 'calc.go')
-rw-r--r--calc.go7
1 files changed, 7 insertions, 0 deletions
diff --git a/calc.go b/calc.go
index 8a114a4..4eab368 100644
--- a/calc.go
+++ b/calc.go
@@ -12,6 +12,13 @@ const (
modeRad = true
)
+func (a AngleMode) String() string {
+ if a == modeDeg {
+ return "deg"
+ }
+ return "rad"
+}
+
type Calculator struct {
stack Stack
buf string