Path: csiph.com!v102.xanadu-bbs.net!xanadu-bbs.net!feeder.erje.net!eu.feeder.erje.net!eternal-september.org!feeder.eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail From: Eric Sosman Newsgroups: comp.lang.java.programmer Subject: Re: how to use unsinged long in java Date: Fri, 14 Mar 2014 08:46:40 -0400 Organization: A noiseless patient Spider Lines: 17 Message-ID: References: <69b21f21-4322-4915-b425-86dace6e5bd6@googlegroups.com> Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Injection-Date: Fri, 14 Mar 2014 12:46:42 +0000 (UTC) Injection-Info: mx05.eternal-september.org; posting-host="bd4e1cba8d8592bec5d5ed9e4537fbfd"; logging-data="17430"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1+daJL5SP8NaqLHnLM4JAD4" User-Agent: Mozilla/5.0 (Windows NT 5.1; rv:24.0) Gecko/20100101 Thunderbird/24.3.0 In-Reply-To: <69b21f21-4322-4915-b425-86dace6e5bd6@googlegroups.com> Cancel-Lock: sha1:qDdaN+Qd/SUl7Q5ExSdHbPDk+ms= Xref: csiph.com comp.lang.java.programmer:27760 On 3/14/2014 2:53 AM, Navneet Mathpal wrote: > hi > I wnat to store 20141231246023 but long is out of range in it. No, the value is well within the range of `long'. The problem is that it's *not* within the range of `int', so you cannot write the value as an `int' constant. Use 20141231246023L to write a `long' constant. > how to save value in this range. > is there any unSigned long available?? No. -- Eric Sosman esosman@comcast-dot-net.invalid