> Why not just size_t pos = result.find_first_of('.');? 

yes, way better. fixed

> BTW: Is the decimal separator of snprintf guaranteed to be a dot?

I believe so. As long as pioneer isn't setting locale somewhere else (I'm not sure of the scope of such a call), which it shouldn't since we said locale-like function should be associated with language chosen in pioneer.