向上取整

爱新觉罗LQ / 2023-08-30 / 原文

int weight = (int) Math.ceil(arr[i - 1] / 512.0);	//	向上取整