java - Converting from Integer, to BigInteger -
i wondering if there way convert variable of type integer, biginteger. tried typecasting integer variable, error says inconvertible type.
the method want biginteger#valueof(long val).
e.g.,
biginteger bi = biginteger.valueof(myinteger.intvalue());
making string first unnecessary , undesired.
Comments
Post a Comment