help-gnu-emacs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: The next exercise


From: Michael Heerdegen
Subject: Re: The next exercise
Date: Mon, 12 Dec 2022 02:39:13 +0100
User-agent: Gnus/5.13 (Gnus v5.13)

Andy Moreton <andrewjmoreton@gmail.com> writes:

> Emacs can still do that:
>
> (let ((integer-width 200000))
>      (substring (number-to-string (expt 10001 10000)) 0 4))
> => "2718"

Indeed:

(let ((integer-width 20000000))
     (substring (number-to-string (expt 1000001 1000000)) 0 6))
==> 271828

6 digits from e.  But there it starts to take some time.

Michael.




reply via email to

[Prev in Thread] Current Thread [Next in Thread]