LinkedIn interview question

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