C# float 浮点型取两位

int a =1;

int b =3;

float c = a/b;

Math.round(c,2);

posted @ 2010-03-25 15:38  溪水云天  阅读(1778)  评论(0编辑  收藏  举报