help-gnu-emacs
[Top][All Lists]
Advanced

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

Re: Converting an Integer into Human Readable String


From: Thierry Volpiatto
Subject: Re: Converting an Integer into Human Readable String
Date: Fri, 08 Apr 2011 11:38:55 +0200
User-agent: Gnus/5.110016 (No Gnus v0.16) Emacs/23.3.50 (gnu/linux)

Eli Zaretskii <address@hidden> writes:

> So this is not a problem when used with file sizes.  Other uses will
> have to take care to use a floating point number for large values.
Yes indeed, thanks.

However it seem this function show only with "M" (mega)

--8<---------------cut here---------------start------------->8---
(url-pretty-length (nth 7 (file-attributes 
"~/.VirtualBox/Machines/LoseDows.vdi")))
"6811.04M"
--8<---------------cut here---------------end--------------->8---

instead of showing e.g "6.8G"

-- 
A+ Thierry
Get my Gnupg key:
gpg --keyserver pgp.mit.edu --recv-keys 59F29997 




reply via email to

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