[Top][All Lists]

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

Re: number-to-string-pad

From: Emanuel Berg
Subject: Re: number-to-string-pad
Date: Sat, 27 Jan 2018 12:09:58 +0100
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/24.4 (gnu/linux)

Yuri Khan wrote:

>> Did anyone do (defun number-to-string-pad
>> (number len)
> (format "%04d" number)
> If you don’t know the length beforehand, you
> could do:
> (format (format "%%0%dd" len) number)

Great, thanks.

underground experts united

reply via email to

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