Questions tagged [biginteger]

BigInteger is an arbitrary-precision arithmetic type in Java, C#, and other languages. It behaves like a signed integer whose size is limited only by available memory.

BigInteger is an arbitrary-precision arithmetic type in the .NET Framework, Java, and other languages. It behaves like a signed integer whose size is limited only by available memory.

1971 questions
0
votes
1 answer

SQL - is BIGINT datatype always 8 bytes?

I know BIGINT can store a 8byte numbers. I want to store numbers with length 12 (Fixed length). So using INT is impossible. If I store a number like153159842655, How much storage it takes ? Is it always 8byte or depends on number ? Second question…
AliN11
  • 2,387
  • 1
  • 25
  • 40
0
votes
1 answer

BigInteger value from SQL DB in wrong format

If I start my android app the app calls some data from a DB and save this data on the local SQL DB on the device. There is one value with a big number so I need BigInteger to store it. If I try to call that value from the local DB I get the…
WeSt
  • 889
  • 5
  • 14
  • 32
0
votes
2 answers

Define struct in the heap with different sizes

I am trying to implement a bigInt library. I have been checking other libraries like GMP, ttmaht or libtommath but any of them fulfill the requirements of the project (because licenses, because they only use the stack, etc) I will follow the…
JomsDev
  • 116
  • 1
  • 9
0
votes
2 answers

I can't convert Hex to BigInteger

I tried to convert Hex to BigInteger, here is source code: public static void main (String[] args) { BigInteger a = new…
Jinseo Kim
  • 35
  • 4
0
votes
0 answers

Can't access System.Numerics from within a Xamarin Android project

I am attempting to use the System.Numerics.BigInteger struct from within a Xamarin.Android project, but the System.Numerics namespace is not accessible, despite having installed the latest version of the Nuget package that claims to contain…
Tim Coulter
  • 8,705
  • 11
  • 64
  • 95
0
votes
1 answer

Simple C example of add/sub/mul/div operations in double-precision floating-points using a single-precision Floating-point system

I am working on an algorithm which requires calculations in large numbers, upto e+30. I am using a 32 bit system with compiler support of 32 bits for long/float/double. So far, by searching online, I've learned that single-precision floating points…
0
votes
3 answers

How to convert binary to decimal using BigInteger?

I am trying to print decimal number from binary number using BigInteger class. I am using BigInteger(String val, int radix) constructor of BigInteger class to convert given binary value to decimal but it is printing the exact binary value which is…
0
votes
1 answer

unsigned long long addition with multiple operands

unsigned long long a = 18446744073709551615 unsigned long long b = 18446744073709551614 unsigned long long c = 18446744073709551613 unsigned long long d = 18446744073709551612 unsigned long long e = 18446744073709551611 I'd like to add a+b+c+d+e…
Mint.K
  • 849
  • 1
  • 11
  • 27
0
votes
1 answer

Bit manipulation for big integer classes?

I'm having a problem coming up with an algorithm for a big integer class in C++. My initial idea was using arrays/lists, but it's very inefficient. I then discovered about things like the following…
Lockhead
  • 2,423
  • 7
  • 35
  • 48
0
votes
1 answer

Use Biginteger in VB

Where to get Biginteger modules and how import them into visual basic that is part of ms access? I wish to work with (very) large integers in visual basic and avoid the integer overflows. Reportedly there are Biginteger modules that can be used for…
Maestro13
  • 3,656
  • 8
  • 42
  • 72
0
votes
1 answer

Golang: help understanding pointers, assignment, and unexpected behavior

So I am back with more beginner questions that I can not seem to wrap my head around. I was experimenting with the following code. func main() { start := time.Now() var powers []*big.Int for i := 1; i < 1000; i++ { I := big.NewInt(int64(i)) …
0
votes
1 answer

Turning an InputStream into BigInteger

public static void main(String[] args) throws IOException { // TODO Auto-generated method stub // Load file with 17 million digit long number BufferedReader Br = new BufferedReader (new FileReader("test2.txt")); String Line =…
Samantha Clark
  • 201
  • 2
  • 9
0
votes
1 answer

Java RSA Input encrypted Text and decrypt it.(BigINteger)

I spent a day to check out a lot of combinations of this last lines of my code but I'absolutely not going to understand how i can get an encrypted Input as BigInteger and decrypt it to a String... So this is the last block of the Code: package…
user7998714
0
votes
1 answer

Parsing binary to BigInteger in VB .NET?

How are you? I wrote a program manipulating big binary chains (string variables). This said manipulation requires me to store my chains in a variable so I can use them as numbers. The only variable type that I have found big enough to store such…
user7831458
  • 83
  • 1
  • 8
0
votes
1 answer

Using Large Integer and decimal data types in SAP HANA

I came across the following article https://blogs.saphana.com/2013/04/07/best-practices-for-sap-hana-data-loads/ and was wondering why it is a good practice not to use large integer and decimal types as data types for columns in HANA, the reason…
Shubha Lakshmi
  • 127
  • 2
  • 2
  • 15
1 2 3
99
100