With $new_min = 5, it would give a range of 0..95 rather than 5..100 if you don't include the offset.
With -100 to +100 as the new min/max, it would give 0..200 rather than -100 to +100.
In reply to Re^3: Normalizing a range of numbers to a percentage
by pryrt
in thread Normalizing a range of numbers to a percentage
by stevieb
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |