Path: csiph.com!v102.xanadu-bbs.net!xanadu-bbs.net!feeder.erje.net!eu.feeder.erje.net!news.swapon.de!fu-berlin.de!uni-berlin.de!individual.net!not-for-mail From: v_borchert@despammed.com (Volker Borchert) Newsgroups: comp.lang.java.programmer Subject: Re: how to use unsinged long in java Date: 14 Mar 2014 10:24:55 GMT Organization: Private site at Eddersheim, Germany Lines: 16 Distribution: world Message-ID: References: <69b21f21-4322-4915-b425-86dace6e5bd6@googlegroups.com> X-Trace: individual.net czpYQ2TrZqJ58PJCOPMMhA58IQ7FXkqBu2dVT3/T+RKA5YaqPc Cancel-Lock: sha1:LZj6ts33ovH5jB7Fl+247Xw2l2g= Xref: csiph.com comp.lang.java.programmer:27758 Navneet Mathpal wrote: > I wnat to store 20141231246023 but long is out of range in it. > how to save value in this range. ??? long is signed 64bit: -9223372036854775808 ... 9223372036854775807 If that's too small, use java.math.BigInteger or roll your own fixed size type consisting of two or four or eight long. -- "I'm a doctor, not a mechanic." Dr Leonard McCoy "I'm a mechanic, not a doctor." Volker Borchert