It's a bit of a cheat, but you can hit 0.00% every time. Just measure the bar length, then cross-multiply. :)
Example: bar is 1250px, max is 2100, number is 376 → (1250 × 376) / 2100 ≈ 223.8px from the start, that's the 0.00%.
It's a bit of a cheat, but you can hit 0.00% every time. Just measure the bar length, then cross-multiply. :)
Example: bar is 1250px, max is 2100, number is 376 → (1250 × 376) / 2100 ≈ 223.8px from the start, that's the 0.00%.