# LaVOZs

The World’s Largest Online Community for Developers

'; Newest 'largenumber' Questions - LavOzs.Com

# Questions tagged [largenumber]

Very large numbers often occur in fields such as mathematics, cosmology, cryptography and statistical mechanics. That numbers are significantly larger than those ordinarily used in everyday life, for instance in simple counting or in monetary transactions. The term typically refers to large positive integers, or more generally, large positive real numbers, but it may also be used in other contexts.

• ### Formula to give the value of the cell next to the 3 largest values that meet a criteria in VLOOKUP

I am creating a spreadsheet that is using VLOOKUP to give a bunch of data based on a dropdown box. It is a fairly large list (the screenshot does not do it justice), and the data is part of a table ...
• ### Is it possible to enforce integer operations in numpy.linalg?

If one uses np.linalg.solve to solve linear equations, the result has dtype=float. While this is ok for "small" integers, larger ones result in wrong results: import numpy as np A = np.array([[...
• ### Complete loss of accuracy in modulus when calculating with very large numbers

I have the following problem: > 1e20 %% 3 [1] 0 Warning message: probable complete loss of accuracy in modulus The result can't be correct and I'm sure it is because 1e20 is really big. But I ...
• ### Modulo arithmetic in Bigquery. Compute `x % y`, where `x` is a 128-bit number

Taking the MD5 of a string as a 128-bit representation of an integer x, how do I compute x % y in Google Bigquery, where y will typically be relatively small (approx 1000)? Bigquery has an MD5 ...
• ### Handling large numbers to calculate the number of combinations

I wrote the following code to calculate a probability. I know the formula I used is correct. The code gives reasonable results for small values of m and n. However, for the large values of m and n, ...
• ### Why does R display wrong number with large numbers?

When I save a large number in R as an object the wrong number is saved? Why is that? options("scipen"=100, "digits"=4) num <- 201912030032451613 num #> [1] 201912030032451616 Created on 2019-...
• ### Testing for primality on a large integer that is stored as a string in C++

I have a program that calculates large numbers by storing them as strings, so that I can have very large digits that extend beyond long long. I can add the strings using a function I've written that ...
• ### R: how to plot with not very small numbers?

I have a sample containing not very small numbers. bits,N,cost,cycles,factor1,factor2,time 112,4128116717189377876765869867845141,88907974,1,59257226083494863,69664359775679707,228 122,...
• ### Why do very large Fibonacci numbers create an ellipse-type shape?

in_range = int(input("range: ")) fibo_list = [] a = 0 b = 1 count = 0 if in_range < 0: print("faulty") elif in_range == 0: print("faulty") else: while count < in_range: c =...
• ### Finding out if a big number is a perfect square numbers using C# [duplicate]

Is there a fast and simple way to write a program in C#, that finds out if a big (something like 25 digits big) number is a perfect square or not? Perfect squares are the numbers: 0^2=0,1^2=1,2^2=4,3^...
• ### Arithmetic on large numbers

I've been thinking about ways to program for exteme distances, in the game Hellion for example, orbits could be near to scale in the ranges of millions of kilometers. However there was a common glitch ...
• ### Storing the variable valoir [duplicate]

I need to manipulate variables that can hold values ​​of size 10 ^ 200 or more. In java I know there is a function called bigInt, in C I don't know how to handle it. Does anyone know how to do this ...
• ### Fast method for testing a bit of a large int

In a number-theoretic algorithm manipulating very large integer n (hundred thousand bits to few millions), I need to test the jth bit. Either of these work: if 1<<j & n != 0 : # bit j ...
• ### JavaScript loop is too slow

I'm working on a task on codewars and cannot understand how to make this function work faster for large numbers <= 200000000000000. The goal of the function is very simple - I just need to count ...
• ### I'm having problem storing 10^18 as a float

I'm writing a program which must take in an integer, N, in range 3<=N<=10^18. This is one of the operations I have to perform with N. final=((0.5*(pow(2,0.5))*(pow((pow(((N/2)-0.5),2)+pow((N/2)-...