Finds the nearest resistor to a desired value from the standard "E" families.
Resistors are commonly available from 10Ω to 1MΩ, values above and below
this range are harder to find. Resistors are readily available as metal film chip resistors in surface mount packages (402, 603, 805, 1206)
and leaded axial packages. These parts have fractional power capability. Resistors with larger power capability are less readily available.
Ceramic capacitors in 5% and 10% tolerance follow the E24 and E12 rules. They are commonly available from 10pF to 1u.
It can be prudent to stick to the E12 values: 1, 1.2, 1.5, 1.8, 2.2, 2.7, 3.3, 3.9, 4.7, 5.6, 6.8, and 8.2 when selecting capacitors.