转载地址:http://blog.csdn.net/lbd2008/article/details/7094824
double Scale_4(double argu)
{
return floor(argu*10000.0+0.5)/10000.0;
}
保留小数点后4位,第5位四舍五入。
转载地址:http://blog.csdn.net/lbd2008/article/details/7094824
double Scale_4(double argu)
{
return floor(argu*10000.0+0.5)/10000.0;
}