小数点后位数修改

main
李岩峰 5 years ago
parent 77f0cb5e00
commit ae43f66645

@ -243,9 +243,9 @@ void get_bom(System::Collections::Generic::List<System::Collections::Generic::Di
AOM_ask_value_string(lines[j], "JD2_sl", &val);
quantity = val;
int index = quantity.find('.');
if(index!=-1&&quantity.length()>(index + 3))
if(index!=-1&&quantity.length()>(index + 4))
{
quantity = quantity.substr(0, index + 3);
quantity = quantity.substr(0,index + 4);
}
}else
{

Loading…
Cancel
Save