← All Notes
reference

Calculating percentages

part ÷ total × 100

For example a 60-LED installation using WLED’s 55 mA/LED estimate:

60 × 55 mA = 3300 mA = 3.3 A

If the current limit is set to 2.9 A:

2.9 ÷ 3.3 × 100 = 87.9%

The 2.9 A limit is therefore about 88% of the LEDs’ estimated 3.3 A maximum.

To get the value of a percentage:

total × percentage ÷ 100

For example what would be 87.9% on the 0–255 brightness scale:

255 × 87.9 ÷ 100 ≈ 224

So 87.9% of 255 is about 224.

Or simply:

X ÷ Y × 100X is what percentage of Y?

Y × X ÷ 100what is X% of Y?