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

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

Re: The next exercise


From: Emanuel Berg
Subject: Re: The next exercise
Date: Thu, 15 Dec 2022 11:47:40 +0100
User-agent: Gnus/5.13 (Gnus v5.13)

Michael Heerdegen wrote:

>> 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.

So how big an integer can you put into `integer-width'?

-- 
underground experts united
https://dataswamp.org/~incal




reply via email to

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