MCPcopy Create free account
hub / github.com/btbytes/teh / decode_number

Method decode_number

lib/demjson.py:1072–1218  ·  view source on GitHub ↗

Intermediate-level decoder for JSON numeric literals. Takes a string and a starting index, and returns a Python suitable numeric type and the index of the next unparsed character. The returned numeric type can be either of a Python int, long, or float. In addition

(self, s, i=0, imax=None)

Source from the content-addressed store, hash-verified

source not stored for this graph (policy: none)

Callers 1

decodeobjMethod · 0.95

Calls 3

JSONDecodeErrorClass · 0.85
decode_hexFunction · 0.85
decode_octalFunction · 0.85

Tested by

no test coverage detected