Hmm, that is going to truncate rather than round if the output is integer, which doesn't seem right. Might want to document that.