[tmpfix][wmsdk] Use atoi instead of atof