C# float 浮点型取两位

mac2022-06-30  22

int a =1;

int b =3;

float c = a/b;

Math.round(c,2);

转载于:https://www.cnblogs.com/Mblog/archive/2010/03/25/1695350.html

最新回复(0)