diff options
Diffstat (limited to 'calc.go')
| -rw-r--r-- | calc.go | 7 |
1 files changed, 7 insertions, 0 deletions
@@ -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 |