Add `toDpi()` and `toDecimal()` functions for comparing values