MCPcopy Create free account
hub / github.com/Snapchat/Valdi / writeDouble

Method writeDouble

valdi_core/src/valdi_core/cpp/Utils/JSONWriter.cpp:53–55  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

51}
52
53void JSONWriter::writeDouble(double d) {
54 write(std::to_string(d));
55}
56
57void JSONWriter::writeBool(bool b) {
58 if (b) {

Callers 1

writeValueToJSONWriterFunction · 0.80

Calls 1

to_stringFunction · 0.50

Tested by

no test coverage detected