Homepage
Recent Changes
Search:
History of 2015-11-07 Converting numbers to strings in a human-friendly way
2015-11-07
22:24 UTC
Revision 1
. . . .
Marcin Borkowski
–
Converting an Elisp number to a string (so that it can be e.g. displayed) is a surprisingly tricky thing to do. While (format "%s" number) seems a reasonable way, sometimes it’s not. In one application I was writing I wanted to display integer numbers as integer numbers, even if they happen to be floating point numbers with zero fractional part.