use atof instead of stof to fix compile error on android