[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
- Re: The next exercise, (continued)
- Re: The next exercise, Michael Heerdegen, 2022/12/11
- Re: The next exercise, Emanuel Berg, 2022/12/15
- Re: The next exercise, Michael Heerdegen, 2022/12/15
- Re: The next exercise, Michael Heerdegen, 2022/12/15
- Re: The next exercise, Michael Heerdegen, 2022/12/15
- Re: The next exercise, Emanuel Berg, 2022/12/17
- Re: The next exercise, Michael Heerdegen, 2022/12/17
- Re: The next exercise, Emanuel Berg, 2022/12/20
- Re: The next exercise, Andy Moreton, 2022/12/11
- Re: The next exercise, Michael Heerdegen, 2022/12/11
- Re: The next exercise,
Emanuel Berg <=
- Re: The next exercise, Emanuel Berg, 2022/12/10
Re: The next exercise, Emanuel Berg, 2022/12/09