Converts integer to density-independent pixels (dp).
Converts float to density-independent pixels (dp).