MCPcopy Create free account
hub / github.com/WolfireGames/overgrowth / SetDoubleValue

Method SetDoubleValue

Libraries/tinyxml/tinyxml.cpp:1278–1290  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1276}
1277
1278void TiXmlAttribute::SetDoubleValue( double _value )
1279{
1280 if(fabs(_value) < 0.000001){
1281 _value = 0.0;
1282 }
1283 char buf [256];
1284 #if defined(TIXML_SNPRINTF)
1285 TIXML_SNPRINTF( buf, sizeof(buf), "%g", _value);
1286 #else
1287 sprintf (buf, "%g", _value);
1288 #endif
1289 SetValue (buf);
1290}
1291
1292int TiXmlAttribute::IntValue() const
1293{

Callers 1

SetDoubleAttributeMethod · 0.80

Calls 2

TIXML_SNPRINTFFunction · 0.85
SetValueFunction · 0.85

Tested by

no test coverage detected