Click here for the answer

The simplest thing is to change the ``2'' and the ``1'' in the body of the
function to ``2.0'' and ``1.0'' respectively. Alternatively, you could
surround the body of the function with a call to N.