added a handy method for truncating numbers