Sorry, you are right, default will be to convert to scientific notation at 1E-3, so the following code will do
void test(string strVal = "0.0010")
{
double dSLsave;
LT_get_var("@SL", &dSLsave);
LT_set_var("@SL", -6); // set Oriign's internal convert to scientific notation to 1E-6
double val = atof(strVal);
char szTemp[30];
DoubleToStr(val, szTemp, 30, "*");
LT_set_var("@SL", dSLsave); // restore after convert
out_str(szTemp);
}
CP
Edited by - cpyang on 02/12/2004 1:12:16 PM