complete the translation of truncate.1 by Will.Qian