Question d’entretien chez LinkedIn

raise double a to int b, without using Math class in Java