Instantly share code, notes, and snippets.

Embed
What would you like to do?
Simple Routine Advances 2
<?php
function DeviceUnitsToPoints($deviceUnits) {
if( DeviceUnitsPerInch() != 0 ) {
return $deviceUnits * ( POINTS_PER_INCH / DeviceUnitsPerInch() );
} else {
return 0;
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment