Skip to content

Instantly share code, notes, and snippets.

Last active Jul 25, 2021
What would you like to do?
const centimetrosAPixeles = (centimetros, dpi) => {
const centimetrosPorPulgada = dpi / 2.54;
return centimetrosPorPulgada * centimetros;
const anchoEnPixeles = centimetrosAPixeles(2.5, 72);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment