mirror of
https://github.com/Dadido3/Scanyonero.git
synced 2025-06-06 01:10:00 +00:00
- 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.
22 lines
421 B
Go
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)
|
|
}
|