ip method

double ip(
  1. double percent
)

Converts a percentage of the screen size into inches.

Implementation

double ip(double percent) {
  return inch * percent / 100;
}