summaryrefslogtreecommitdiff
path: root/internal/num/signed.go
blob: d0c88f0f2422d0eeeccc4a7b5d756968088e4f32 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
package num

import "fmt"

type Signed int

func (s Signed) String() string {
	if s == 0 {
		return ""
	}
	return fmt.Sprintf("%+d", int(s))
}