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

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

Re: What is 0.01 here not 0.01 here 0.009999999999999?


From: Arthur Miller
Subject: Re: What is 0.01 here not 0.01 here 0.009999999999999?
Date: Sat, 03 Apr 2021 05:56:01 +0200
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/27.1 (windows-nt)

Jean Louis <bugs@gnu.support> writes:


> results with 10.12 and not something else. Results are used for
> automated version numbers (in some cases).

Don't use floating points for version number. Use integers, One for each
number: major, minor and revision. You can either defvar them each or
use a vector or a list. You can them just simply increment the part you
need in your revision control and use (format "%s.%s.%s" major minor
revions) to print them to a string.



reply via email to

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