Convert int to double

int i=10;
double d=(i*1.0)/10;

原文地址:https://www.cnblogs.com/applesuch5/p/1347313.html