0

How do i give range from -infinity to +infinity?

2nd Sep 2017, 4:17 PM
Bounty Hunter
Bounty Hunter - avatar
6 Antworten
+ 3
You obviously can't, your computer is not magic and won't count until the infinity since you want it to stop at some point and do the rest of the code. You might want to give very high values instead depending of what are your purposes
2nd Sep 2017, 4:21 PM
Dapper Mink
Dapper Mink - avatar
+ 3
(in javascript) var userInputs = []; while(true){ var input = prompt('Input:',''); if(typeof(input) === 'undefined'){ break; } userInputs.push(input); }
2nd Sep 2017, 4:30 PM
Dapper Mink
Dapper Mink - avatar
+ 1
I'm not an expert but don't data types have different limits?
2nd Sep 2017, 5:33 PM
Ghauth Christians
Ghauth Christians - avatar
0
it's not infinity I seek but the code to how user can store as enough data as he can
2nd Sep 2017, 4:26 PM
Bounty Hunter
Bounty Hunter - avatar
0
2nd Sep 2017, 4:31 PM
Bounty Hunter
Bounty Hunter - avatar
0
You got the idea, simply convert the syntax
2nd Sep 2017, 4:33 PM
Dapper Mink
Dapper Mink - avatar