Page 1 of 1
Data type in java
Posted: Sun Jul 22, 2007 12:39 pm
by ranacse05
How long data type can i get in jave ? In c/c++ we get max 64 bit in jave is it possible to use 256 bit or more ?
Posted: Sun Jul 22, 2007 12:47 pm
by mf
First Google hit -
http://java.sun.com/docs/books/tutorial ... types.html
There's also java.math.* which provides arbitrary-precision integers and decimals, but they're currently not supported at this online judge.
Posted: Mon Jul 23, 2007 5:11 pm
by chunyi81
For primitive data types the max you can go in Java is 64 bits for a long (which is 32 bits for C/C++).
There are other types such as BigInteger, BigDecimal, to name a few.
Posted: Mon Aug 13, 2007 11:18 am
by 29060SC
Hi folks,
Actually, since java.math.BigInteger is not supported by the online judge, one is supposed to implement the arbitrary precision long numbers by itself, right ?
Thanks,
LonSx
Posted: Tue Aug 14, 2007 6:45 pm
by mf
Yes.
Or you can wait until the
new server (with full Java 5 support) will finally be ready...