truncate integer when assignment