Added an int version of slope().