Path: csiph.com!eternal-september.org!feeder.eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail From: 4ndre4 <626401fd-4bc7-4f8f-b641-563ae0f72920@626401fd-4bc7-4f8f-b641-563ae0f72920.invalid> Newsgroups: comp.lang.java.programmer Subject: Re: double == double Date: Sun, 16 Oct 2016 03:13:42 +0100 Organization: A noiseless patient Spider Lines: 14 Message-ID: References: <8737k0qd38.fsf@golem.phantasia.org> <87zim5es30.fsf@golem.phantasia.org> Mime-Version: 1.0 Content-Type: text/plain; charset=windows-1252; format=flowed Content-Transfer-Encoding: 7bit Injection-Date: Sun, 16 Oct 2016 02:13:22 -0000 (UTC) Injection-Info: mx02.eternal-september.org; posting-host="570c26f318a84660626f8740e6d03fdd"; logging-data="29359"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX182KpPNVqIQSk6K27jmE+nC" User-Agent: Mozilla/5.0 (Windows NT 10.0; WOW64; rv:45.0) Gecko/20100101 Thunderbird/45.4.0 In-Reply-To: Cancel-Lock: sha1:m4J+L2le3m5KPdc442pYB9G4pqc= Xref: csiph.com comp.lang.java.programmer:35777 On 15/10/2016 23:28, Eric Sosman wrote: [...] > One problem is that String comparison is character-by-character, > meaning that version "1.10" compares *less* than "1.9". That's true, but I was assuming that any comparison on versions would not just be a mere string comparison, but take into account the specific structure of the version number. For example, for a typical major.minor version, I assume that the checker would split the two parts of the version and compare them separately. -- 4ndre4