Scanyonero/unit/per-inch.go
David Vogel 853a1bb58d Rework into FTP scanning server
- Rename to Scanyonero
- Add FTP server that ingests TIFF, PNG, JPEG or PDF files
- Add web interface to check and modify ingested files
- Rework how ocrmypdf is invoked

Basics are working, but the program is not in a usable state.
2025-05-14 12:08:38 +02:00

22 lines
421 B
Go

package unit
import "strconv"
// PerInch denotes a density of something unitless per inch.
type PerInch float64
var _ Unit = PerInch(0)
var _ Density = PerInch(0)
func (v PerInch) String() string {
return strconv.FormatFloat(float64(v), 'f', -1, 64) + "/inch"
}
func (PerInch) UnitSymbol() string {
return "/inch"
}
func (v PerInch) PerMillimeter() PerMillimeter {
return PerMillimeter(v / MillimetersPerInch)
}