Frage im Vorstellungsgespräch bei LinkedIn

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