Why not just ```size_t pos = result.find_first_of('.');```? BTW: Is the decimal separator of ```snprintf``` guaranteed to be a dot?