mirror of
https://github.com/Dadido3/Scanyonero.git
synced 2025-06-06 17:30: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.
26 lines
515 B
Go
26 lines
515 B
Go
package unit
|
|
|
|
import "strconv"
|
|
|
|
// PerMillimeter denotes a density of something unitless per millimeter.
|
|
type PerMillimeter float64
|
|
|
|
var _ Unit = PerMillimeter(0)
|
|
var _ Density = PerMillimeter(0)
|
|
|
|
func (v PerMillimeter) String() string {
|
|
return strconv.FormatFloat(float64(v), 'f', -1, 64) + "/mm"
|
|
}
|
|
|
|
func (PerMillimeter) UnitSymbol() string {
|
|
return "/mm"
|
|
}
|
|
|
|
func (v PerMillimeter) PerInch() PerInch {
|
|
return PerInch(v * MillimetersPerInch)
|
|
}
|
|
|
|
func (v PerMillimeter) PerMillimeter() PerMillimeter {
|
|
return v
|
|
}
|