If you look at the equations for the EM and gravitational forces in Farcher's answer you'll seek they contain a constant - $\varepsilon_0$ for the EM force and $G$ for gravity. The problem is that these constants have dimensions i.e. their numerical values depend on the units we choose for (in this case) charge and mass. That makes them unsuitable for comparing the fundamental strengths of the forces.
So instead we use a parameter called the coupling constant, and it's the values of these coupling constants that gives us the relative strengths of the forces. The copupling constants are dimensionless so their value is unchanged if we change our definitions of the coulomb, kilogram or whatever.
These coupling constants are approximately:
$$\begin{align}
\text{Strong force}\, \alpha_S &\approx 1 \\
\text{EM force}\, \alpha_{EM} &\approx \tfrac{1}{137} \\
\text{Weak force}\, \alpha_W &\approx 10^{−6} \\
\text{Grav force}\, \alpha_G &\approx 10^{−38}
\end{align}$$
This is the origin of the $1:10^{36}:10^{38}$ ratio that you cite.
Note that the coupling constants $\alpha$ aren't actually constant but change with the interaction energy. However this change is negligable outside special cases like collisions in the Large Hadron Collider.