Sujet : Re: Help with Streaming and Chunk Processing for Large JSON Data (60 GB) from Kenna API
De : rosuav (at) *nospam* gmail.com (Chris Angelico)
Groupes : comp.lang.pythonDate : 30. Sep 2024, 20:46:35
Autres entêtes
Message-ID : <mailman.11.1727722011.3018.python-list@python.org>
References : 1 2 3 4 5 6 7
On Tue, 1 Oct 2024 at 04:30, Dan Sommers via Python-list
<
python-list@python.org> wrote:
>
But why do I need to start with the least
significant digit?
If you start from the most significant, you don't know anything about
the number until you finish parsing it. There's almost nothing you can
say about a number given that it starts with a particular sequence
(since you don't know how MANY digits there are). However, if you know
the LAST digits, you can make certain statements about it (trivial
examples being whether it's odd or even).
It's not very, well, significant. But there's something to it. And it
extends nicely to p-adic numbers, which can have an infinite number of
nonzero digits to the left of the decimal:
https://en.wikipedia.org/wiki/P-adic_numberChrisA