There might be a bug in ofxXmlSettings.setValue? (of 0071 iOS)

Hi guys,
I have been working on an iOS app for a while, and trying to move it to the new release of OF0071 for iOS.
My app requires lots of XML read/write and I was having trouble with the double values using setValue();
I was trying to assigning floating numbers into my tag values, and somehow it worked wired:
things like -122.564345 will be written as -122.565, that was a huge headache for me…

After a weekend I turned into the old OF007 and looked at the XML addons, I found the differences:
0071:
int ofxXmlSettings::setValue(const string& tag, double value, int which){
int tagID = writeTag(tag, ofToString(value).c_str(), which) -1;
return tagID;
}

007:
int ofxXmlSettings::setValue(const string& tag, double value, int which){
char valueStr[255];
sprintf(valueStr, “%f”, value);
int tagID = writeTag(tag, valueStr, which) -1;
return tagID;
}

When I replaced the code with the 007 version and it works fine now, I am not sure if this is a bug since I am never a decent developer. I am thinking if anyone can explain for what reason the new version would cause this kind of problem?
Thank you guys

It seems ofToString truncates the double/float. Bug reported here: https://github.com/openframeworks/openFrameworks/issues/1516

Thanks a lot!