📅  最后修改于: 2022-03-11 14:44:55.594000             🧑  作者: Mango
(a + b - 1) / b;
// this formula works for integer as well. ceil function in c++ takes double type value. To get ceil value for integer division you can simply use this expression without converting your datatype to double type.