This commit is contained in:
2025-09-21 11:03:52 -07:00
parent 667790030e
commit e04cd5160e
138 changed files with 17338 additions and 0 deletions

View File

@@ -0,0 +1,16 @@
package main
import (
"fmt"
)
// nzf is a type that will print "-" instead of 0.0 when used as a stringer.
type nzf float64
func (nzf nzf) String() string {
if nzf != 0.0 {
return fmt.Sprintf("%.01f", nzf)
}
return "-"
}