Added abs() method and fixed potential bug in roundTo() method