5

The amount of digits Python can handle is staggering...

I stopped at 100 000, because I felt that I had proven my point. That's approximately 330 000 bits! (And yes, I had to use Python to be able to calculate that number)

Doesn't work with floats, though...

Comments
  • 0
    Cool could you post the code?
  • 0
    I wrote it in the python console, so I don't have it, but it's basically just an infinite loop where you multiply a variable by a huge number.
  • 0
    Like you couldn't do that in other langs. If you allocate dynamically, such things should be possible. Python's magic is somewhere else than in length of an integer :P also, try double(), that should work for "floats" in Python too, I think.
  • 2
    @KeyWeeUsr Yeah, this could obviously be implemented in most languages, but Python does it for you, which is an important part of why it's so useful for maths, among other things. I honestly don't know why people use Matlab at all...

    It's also part of the reason why there's so much overhead in Python, though, but it's all about the right tool for the right job!
Add Comment