Top "Biginteger" questions

BigInteger is an arbitrary-precision arithmetic type in Java, C#, and other languages.

Hibernate returns BigIntegers instead of longs

This is my Sender entity @Entity public class Sender { @Id @GeneratedValue(strategy = GenerationType.AUTO) private long senderId; ... ... public long getSenderId() { …

java spring hibernate long-integer biginteger
What are the best (portable) cross-platform arbitrary-precision math libraries?

I’m looking for a good arbitrary precision math library in C or C++. Could you please give me some …

c++ c biginteger bigdecimal gmp
How to convert strings to bigInt in JavaScript

I need to convert a string to BigInt like BigInteger in Javascript Example var reqId = "78099864177253771992779766288266836166272662"; var result = parseInt(reqId); document.…

javascript node.js biginteger bigint
Django BigInteger auto-increment field as primary key?

I'm currently building a project which involves a lot of collective intelligence. Every user visiting the web site gets created …

python django primary-key auto-increment biginteger
BigInteger equivalent in Swift?

Is there an equivalent to Java's BigInteger class in Swift? I am tying to do large calculations in Swift with …

swift int biginteger largenumber
Converting BigInteger to binary string

Can we convert Biginteger to binary string String s1 = "0011111111101111111111111100101101111100110000001011111000010100"; String s2 = "0011111111100000110011001100110011001100110011001100110011001100"; BigInteger bi1, bi2, bi3; bi1 = new BigInteger(s1,2); bi2 = …

java biginteger
How do I generate a random n digit integer in Java using the BigInteger class?

I am unsure about how to generate a random n digit integer in Java using the BigInteger class.

java biginteger digits
BigInteger to Hex/Decimal/Octal/Binary strings?

In Java, I could do BigInteger b = new BigInteger(500); Then format it as I pleased b.toString(2); //binary b.toString(8); //…

c# tostring biginteger
Calculate square root of a BigInteger (System.Numerics.BigInteger)

.NET 4.0 provides the System.Numerics.BigInteger type for arbitrarily-large integers. I need to compute the square root (or a reasonable …

c# biginteger
% operator for BigInteger in java

How to use a%b with big integers? like ... BigInteger val = new BigInteger("1254789363254125"); ... boolean odd(val){ if(val%2!=0) return true; …

java biginteger