Convert int to double

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

posted on 2008-12-04 10:29  .net小鸟  阅读(336)  评论(1编辑  收藏  举报