- #1
chubbychub
- 5
- 0
i need to write a function for DPI screen scaling,
so the parameters is from 100 (percentage) to 350 (percentage) and increases at 25 (percentage) increase, it will subtract additional 1 DPI
so for example:
100% = 96 DPI which is -4
125% =120 DPI which is -5
150% =144 DPI which is -6
175% = 168 DPI which is -7
200% =192 DPI which is -8
225% = 216 DPI which is -9
250% = 240 DPI which is -10
275% = 264 DPI which is -11
300% = 288 DPI which is -12
325% = 312 DPI which is -13
350% = 336 DPi which is -14
if someone can help me solve this math problem please
so the parameters is from 100 (percentage) to 350 (percentage) and increases at 25 (percentage) increase, it will subtract additional 1 DPI
so for example:
100% = 96 DPI which is -4
125% =120 DPI which is -5
150% =144 DPI which is -6
175% = 168 DPI which is -7
200% =192 DPI which is -8
225% = 216 DPI which is -9
250% = 240 DPI which is -10
275% = 264 DPI which is -11
300% = 288 DPI which is -12
325% = 312 DPI which is -13
350% = 336 DPi which is -14
if someone can help me solve this math problem please