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: Fri, 09 Dec 2022 22:29:54 +0100
User-agent: Gnus/5.13 (Gnus v5.13)

Emanuel Berg <incal@dataswamp.org> writes:

> I suspect some trap here but okay then

I hope I'm not that bad.

> I'll bite
>
> (substring (format "%d" (expt 1001 1000)) 0 3)
>
> which is 271

Indeed!

Seems a lot of people already know that `expt' and even `format' alone
are totally able to handle the task.

Michael.




reply via email to

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