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


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

Re: string comparison of big integers

Newsgroups comp.lang.java.programmer
Date 2015-02-26 23:53 -0800
References <fbfdf843-2a45-4e59-a0c4-70020b6982cf@googlegroups.com> <ymdzcix9sz2l$.1ejyrjg120tvo.dlg@40tude.net> <6e87c06e-7e35-45b1-a76e-766befb279da@googlegroups.com>
Message-ID <50244d61-e987-4d04-86a7-85ce4005bcdc@googlegroups.com> (permalink)
Subject Re: string comparison of big integers
From Vlastimil Burian <burian.vlastimil2@gmail.com>

Show all headers | View raw


On Friday, February 27, 2015 at 8:28:46 AM UTC+1, Vlastimil Burian wrote:
> On Friday, February 27, 2015 at 8:21:46 AM UTC+1, Joerg Meier wrote:
> > On Thu, 26 Feb 2015 21:43:06 -0800 (PST), Vlastimil Burian wrote:
> > 
> > > I need to compare big numbers in all number systems, but first step is to be able to compare them in decimal number system, which is not working properly, 
> > 
> > Simply use BigInteger or BigDecimal.
> > 
> > BigInteger number1 = new BigInteger("994237846283");
> > BigInteger number2 = new BigInteger("287391283712");
> > 
> > if (number1.compareTo(number2) > 0) System.out.println("number1 is bigger
> > than number2");
> > 
> > Liebe Gruesse,
> > 		Joerg
> > 
> > -- 
> > Ich lese meine Emails nicht, replies to Email bleiben also leider
> > ungelesen.
> 
> Error 3  The type or namespace name 'Numeric' does not exist in the namespace 'System' (are you missing an assembly reference?)
> 
> in FW 4.5.1

I'm solving it now on MSDN forum. Thanks anyway. Goodbye.

Back to comp.lang.java.programmer | Previous | Next — Previous in thread | Next 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