Always perform division on numbers returned by functions.

Closes #973