Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.java.programmer > #31235

Re: string comparison of big integers

Path csiph.com!v102.xanadu-bbs.net!xanadu-bbs.net!feeder.erje.net!eu.feeder.erje.net!eternal-september.org!feeder.eternal-september.org!mx02.eternal-september.org!.POSTED!not-for-mail
From Martin Gregorie <martin@address-in-sig.invalid>
Newsgroups comp.lang.java.programmer
Subject Re: string comparison of big integers
Date Fri, 27 Feb 2015 11:08:41 +0000 (UTC)
Organization A noiseless patient Spider
Lines 13
Message-ID <mcpj7p$d60$1@dont-email.me> (permalink)
References <fbfdf843-2a45-4e59-a0c4-70020b6982cf@googlegroups.com>
Mime-Version 1.0
Content-Type text/plain; charset=UTF-8
Content-Transfer-Encoding 8bit
Injection-Date Fri, 27 Feb 2015 11:08:41 +0000 (UTC)
Injection-Info mx02.eternal-september.org; posting-host="e5160e2be48f1ea550cf61512446f525"; logging-data="13504"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX18nTcd0vNuJEZWTHjPQvkcjUKV+ulYk4Ks="
User-Agent Pan/0.139 (Sexual Chocolate; GIT bf56508 git://git.gnome.org/pan2)
Cancel-Lock sha1:ng4iDHionqnlR5oWEnqhFmDfElE=
Xref csiph.com comp.lang.java.programmer:31235

Show key headers only | View raw


On Thu, 26 Feb 2015 21:43:06 -0800, Vlastimil Burian wrote:

> Whatt is wrong?, please help!

Obvious: use "while (condition test) { i++ }"
and not      "{ i++ } while (condition test)
so you start the comparison at the first digit, not the second.


-- 
martin@   | Martin Gregorie
gregorie. | Essex, UK
org       |

Back to comp.lang.java.programmer | Previous | Next — Previous in thread | Find similar | Unroll thread


Thread

string comparison of big integers Vlastimil Burian <burian.vlastimil2@gmail.com> - 2015-02-26 21:43 -0800
  Re: string comparison of big integers Joerg Meier <joergmmeier@arcor.de> - 2015-02-27 08:21 +0100
    Re: string comparison of big integers Vlastimil Burian <burian.vlastimil2@gmail.com> - 2015-02-26 23:28 -0800
      Re: string comparison of big integers Vlastimil Burian <burian.vlastimil2@gmail.com> - 2015-02-26 23:53 -0800
      Re: string comparison of big integers Joerg Meier <joergmmeier@arcor.de> - 2015-02-27 09:12 +0100
      Re: string comparison of big integers Arne Vajhøj <arne@vajhoej.dk> - 2015-02-27 07:04 -0500
  Re: string comparison of big integers Andreas Leitgeb <avl@auth.logic.tuwien.ac.at> - 2015-02-27 10:57 +0000
    Re: string comparison of big integers burian.vlastimil2@gmail.com - 2015-02-27 03:04 -0800
      Re: string comparison of big integers Arne Vajhøj <arne@vajhoej.dk> - 2015-02-27 11:23 -0500
  Re: string comparison of big integers Martin Gregorie <martin@address-in-sig.invalid> - 2015-02-27 11:08 +0000

csiph-web