MCPcopy Create free account
hub / github.com/apache/thrift / writeDouble

Method writeDouble

lib/py/src/protocol/TJSONProtocol.py:565–568  ·  view source on GitHub ↗
(self, dbl)

Source from the content-addressed store, hash-verified

563 self.writeJSONNumber(i64)
564
565 def writeDouble(self, dbl):
566 # 17 significant digits should be just enough for any double precision
567 # value.
568 self.writeJSONNumber(dbl, '{0:.17g}')
569
570 def writeString(self, string):
571 self.writeJSONString(string)

Callers 1

Calls 1

writeJSONNumberMethod · 0.80

Tested by 1