标签:定义 return set val pre 字符 开发 tmp clu
VS2010 NX8.5
#include<algorithm>
#include <sstream>
#include <iomanip>
//定义涵数
NXString doubleToNXString(double value);//double转换NXString
NXString intToNXString(int value);//int转换NXString
NXString HoleTable::doubleToNXString(double value)//double转换NXString
{
stringstream tmpValue1;
tmpValue1 << setprecision(16) << value;
return NXString(tmpValue1.str());
}
NXString HoleTable::intToNXString(int value)//int转换NXString
{
stringstream tmpValue2;
tmpValue2 << setprecision(16) << value;
return NXString(tmpValue2.str());
}
标签:定义 return set val pre 字符 开发 tmp clu
原文地址:https://www.cnblogs.com/hqsalanhuang/p/14665019.html