|
From: | Gregory Heytings |
Subject: | Re: The next exercise |
Date: | Fri, 09 Dec 2022 20:33:51 +0000 |
M-: (substring (number-to-string (expt 1001 1000)) 0 3) RET "271"Yes - correct!My expectation was that someone would try Emacs Calc. Because it can compute the number exactly - all digits.
You asked for the first three digits, but of course expt also computes the number exactly:
M-: (expt 1001 1000) RET But indeed: M-x calc RET 1001 RET 1000 RET ^
[Prev in Thread] | Current Thread | [Next in Thread] |