Truncates a number to a whole integer or to a specified decimal place.