Fix sqrt for Int/Log to return Double