|
From: | Paul Eggert |
Subject: | Re: Using the GNU GMP Library for Bignums in Emacs |
Date: | Wed, 2 May 2018 22:53:11 -0700 |
User-agent: | Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.7.0 |
Richard Stallman wrote:
That means the feature would need to specify the number of hex digits desired.
We already have such a feature. For example, (format "%09x" 257) returns"000000101", which is 257 hexadecimal, expressed using leading zeros as needed so that at least 9 digits are used. Once Emacs supports bignums, the same feature can print 40-hex-digit SHA-1 checksums by using (format "%040x" n).
[Prev in Thread] | Current Thread | [Next in Thread] |