Pregunta de entrevista de Digimarc

How to round up an integer division

Respuestas de entrevistas

Anónimo

24 sept 2016

Add half of the numerator to itself before dividing: (a + a/2) / b

Anónimo

22 feb 2018

I don't think that (a + a/2)/b is correct. I think it would be (a + 1)/b