Most voted "biginteger" questions
6 questions
Sort by count of
-
9
votes2
answers93
viewsMethod equivalent to Biginteger.and() in C#
I need to convert the java code below to C#: public static boolean verificaPermissao(BigInteger perm1, BigInteger perm) { if (perm1 == null || perm == null || (perm1.equals(BigInteger.ZERO) ||…
-
4
votes1
answer368
viewsOverflow by multiplying two integers in Biginteger
I am starting studies in Java and have a task: generate two random integers and store their multiplication. For this, I tried to use long and BigInteger. But the result of this multiplication is…
-
2
votes2
answers823
viewsSwap Long for Biginteger or Bigdecimal?
I am trying to read from the keyboard a very large integer number, I saw that there are the type Biginteger or Bigdecimal, I do not know if they are bigger than the Long. wanted to read from the…
-
1
votes1
answer1909
viewsHow to convert decimal to binary with large numbers?
I am creating a program in C# language to perform conversions I am currently implementing the binary -> decimal and decimal -> binary. How can I do the conversion if user type large numbers as…
-
0
votes1
answer78
viewsUse of the Big Integer class to build an MD5 hash
I found in another post right here in the OS the following example of code to generate a hash through MD5: String message = "teste1234"; byte[] hash =…
-
0
votes1
answer37
viewsError assigning malloc to an integer in C language
Hello I’m following a tutorial on Youtube about dynamic memory allocation in c language, but I’m getting an error regarding the attribution of a malloc() to an integer type variable. The strange…