Convert int to double c