Questions tagged [limits]

For questions about the limits of a certain feature of a programming language. Note that this site is not for the evaluation mathematical limits without the use of programming.

330 questions
-1
votes
1 answer

C error: size of array is too large

I have tried to compile this C code: #define MAX_INT 2147483647 int main() { int vector[MAX_INT]; return 0; } I'm using the C compilers provided by both MinGW and MSYS projects, i.e., MinGW / MSYS. MinGW compiler is "gcc version 6.3.0…
Graco Babeuf
  • 3
  • 1
  • 4
-1
votes
1 answer

Calculating square root for extremely large numbers in C

I am solving some tasks from school olimpiads, and I got stuck on one question. I found the solution for the task, but my solution requires square rooting. My code works fine for first 12 inputs, but then it gives wrong answers. I guess that it is…
ar kang
  • 95
  • 1
  • 9
-1
votes
1 answer

how to change x-axis limits ggplot2 r

I would like to set limit for x-axis using ggplot bar plot. The whole plot is ok, but when I use ylim(1,6) (these are limits what I need) the bars disappear. Data: var.A <- as.numeric(c(1:13)) var.B <- c(4.351833, 2.938000, 4.726465, 3.747162,…
Maciej B.
  • 373
  • 1
  • 4
  • 13
-1
votes
1 answer

openlayer with mapquest number limit of transactions?

I'm using Open Layer v3 with MapQuest as a map, I'm asking about the limits of request per day ? In case there are a fixed limit, can you suggest me another solution with no limit. Thanks for reaching back with me, as soon as possible.
-1
votes
1 answer

Bypass Google Maps Directions limits

I've to make a map with multiple directions but the API limit 10 directions by map. So how can I bypass this? Is there any paying way to increase the limits? Thanks in advance
Splinteer
  • 1,126
  • 4
  • 13
  • 28
-1
votes
1 answer

select2-How to limit the max selection to one and prevent the user to enter more text?

I have to limit the max selection in select 2 to one. I familiar with the option maximumSelectionSize: 1, but this option enable the user to enter text to the input/selcect-2 container, and also provide a message with "You can only select 1 item",…
Sarit Rotshild
  • 391
  • 3
  • 5
  • 21
-1
votes
1 answer

PHP: How to check if a number is between collection of two numbers

i have a code like this $count=15; // i manually initialising a value that not satisfying by folling condition $low_limit=0; $up_limit=10; $num_pages=0; (some loop) { if (($count >= $low_limit) && ($count <= $up_limit)) { …
Shifana Mubi
  • 197
  • 1
  • 3
  • 17
-2
votes
1 answer

Calculating limits in js

Is there a way how to calculate limits in js without using extenal libraries? Lets say we have limit lim n-> infinity = n^{n/2} / n! could we solve it using plain js?
J.dd
  • 145
  • 15
-2
votes
1 answer

What is the best way to make a delegate that accept any return and any parameter?

im trying to do an delegate that can take anything or return anything.Why simply run and understanding the limit. So far , the only way i know is by using the "object" key word everywhere and passing a list of onbject for parameter. To me it seem…
Kazimar
  • 375
  • 1
  • 3
  • 12
-2
votes
2 answers

Python saving the last 3 scores

When i run mu code it says : for line in scoresFile: ValueError: I/O operation on closed file. I have tried many things but it won't change the outcome. My code looks like this: SCORE_FILENAME = "Class1.txt" MAX_SCORES = 3 try: scoresFile =…
Milan Lad
  • 13
  • 3
-2
votes
1 answer

limit in the geolocation of multiple points in google fusion tables

I'm trying to geolocate these 27 points at the same time, in the same row. But the process returns only the first 10 points, even if in the preview they are all 27 correctly geolocated. Why? Is there a particular limit to the number of points I can…
-2
votes
2 answers

popen and write/read system call explanation using PIPE_BUF in unix

how exactly does the constant "PIPE_BUF" defined in limits.h work in linux. And when I use it as "count" in the system call "read(int fd, void *buf, size_t count);", does the system call "read", return one byte at a time and waits till it reaches…
-3
votes
2 answers

What's the limit of fraction inside square root

I need to find limit sqrt((3x-1)/(x+2)) when x->infinity Can anyone help me please?
Jan Vorisek
  • 530
  • 1
  • 7
  • 17
-4
votes
2 answers

Repeat Foreach limit

I have this code $v): ?> And i get this output id name …
-9
votes
4 answers

How to print ULONG_MAX without printf

I am recoding the printf function. The problem is with limits, I cannot print ULONG_MAX number for instance. printf("%lu", ULONG_MAX) gives me ->18446744073709551615 ft_putnbr(ULONG_MAX) gives me -> -1 I included the two following libraries :…
ziKmouT
  • 175
  • 2
  • 2
  • 13
1 2 3
21
22