1 Reply Latest reply: Jul 19, 2012 2:49 AM by gimbal2 RSS

    variables

    user13328581
      Dear experts;

      how can i save a number in a variable and use it for multiplication without any data type limitation because i know that int has a limitation of 32 bits and long has a limitation of 64 bits what are the options do i have in doing so.
        • 1. Re: variables
          gimbal2
          64 bits a limitation? Just what do you want to calculate!?!?

          Most of the time an int is actually more than enough. But if you have to work with ludicrously large numbers then there are always BigInteger and BigDecimal.

          http://docs.oracle.com/javase/7/docs/api/java/math/BigInteger.html