MCPcopy Index your code
hub / github.com/MapServer/MapServer / msDoubleToString

Function msDoubleToString

mapstring.c:369–378  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

367}
368
369char *msDoubleToString(double value, int force_f) {
370 size_t bufferSize = 256;
371 char *buffer = (char*)msSmallMalloc(bufferSize);
372
373 if (force_f == MS_TRUE)
374 snprintf(buffer, bufferSize, "%f", value);
375 else
376 snprintf(buffer, bufferSize, "%g", value);
377 return(buffer);
378}
379
380char *msIntToString(int value) {
381 size_t bufferSize = 256;

Callers 5

UpdateShapeAttributesFunction · 0.85
msGML3BoundedByFunction · 0.85
msGML3PointFunction · 0.85
sdeGetRecordFunction · 0.85
msSOSAddGeometryNodeFunction · 0.85

Calls 1

msSmallMallocFunction · 0.85

Tested by

no test coverage detected