truncate function

truncate a component fit