A discretely compounded rate of return measures the rate of changes in the value of an asset over a period under the assumption that the number of compounding periods is countable. Most standard deposit and loan instruments are compounded at discrete and evenly spaced periods, such as annually or monthly. For example, suppose that the holding period return on a stock over a year is 50%. If the rate of return is compounded on a quarterly basis, the compounded quarterly rate of return on the stock is (1 + 0.5)^{1/4} - 1 = 10.67%.
The continuously compounded rate of return measures the rate of change in the value of an asset associated with a holding period under the assumption of continuously compounding. It is the natural logarithm of 1 plus the holding period return, or equivalently, the natural logarithm of the ending price over the beginning price. From t to t + 1:

S: stock price. R_{t, t + 1}: the rate of return from t to t + 1
Example 1
S_{0} = $30, S_{1} = $34.50. ==> R_{t, t + 1} = $34.50/$30 - 1 = 0.15, and r_{0, 1} = 0.139762. The continuously compounded return is smaller than the associated holding period return.
Example 2
Assume that a particular stock has a price of $200 at the start of a period and a price of $250 at the end of that period. That is, S_{0} = 200, and S_{1} = 250.
Hence, R, the holding period return, is: R = [S_{1}/ S_{0}] - 1 = [250/200] - 1 = 25%.
Using the formula for the continuously compounded rate of return gives: ln(1+R) = ln(S_{1}/ S_{0}) = ln(1.25) = 0.223 or 22.3%.
In order to see why the latter is preferable, consider the following:
Suppose that the stock now falls from $250 to $200. Then, R = [200/250] - 1 = -0.2 or -20%. So, effectively, the stock has returned to its original price, but combining the two rates of return and averaging them gives [(0.25+ (-0.2)] / 2 = 0.05 / 2 = 0.025 or 2.5%, which is misleading, as in actual fact the stock has returned to its original price, and hence the return is effectively 0%.
However, ln(1+R) = ln[(1 + (-0.2)] = ln(0.8) = -0.223 or -22.3%, which is exactly the negative of the original return. Averaging these two rates gives [(0.223 + (-0.223)] / 2 = 0 / 2 = 0 or 0%, which is the true rate of return for the period.
Thus, a continuously compounded return gives a more accurate account of the true picture of the rate of return over a period.