LinkedIn Interview Question

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