J2ME passing string value to bouncy castle BigInteger

Posted by user326096 on Stack Overflow See other posts from Stack Overflow or by user326096
Published on 2010-04-26T15:19:35Z Indexed on 2010/04/26 15:23 UTC
Read the original article Hit count: 259

Filed under:
|

I passed a string "654782" to the BigInteger constructor, but when I read the integer back I got a different number.

String modulus_str = "654782"; BigInteger modulus = new BigInteger(modulus_str);

modulus.toString() returns a different value

© Stack Overflow or respective owner

Related posts about j2me

Related posts about biginteger