Done Let "DO i= ..." use big numbers

May 20, 2008
10,623
81
Syracuse, NY, USA
v:\> do i=7701322010 to 7701322015 (echo %@eval[i+1])
-888612581
-888612580
-888612579
-888612578
-888612577
-888612576
 

rps

Jul 6, 2008
426
5
Isn't this a case for using scientific notation.
According to the docs the @eval internal calculations support 20,000 digits and can display 10,000 to the left and right of the decimal point.

do i=1 to 15 (echo %@comma[%@eval[i+7.701322010E9]])
7,701,322,011
7,701,322,012
7,701,322,013
7,701,322,014
7,701,322,015
7,701,322,016
7,701,322,017
7,701,322,018
7,701,322,019
7,701,322,020
7,701,322,021
7,701,322,022
7,701,322,023
7,701,322,024
7,701,322,025

Works here. Couldn't resist.

Just added the comma's for clarity.

But seriously; what would you count, with DO loop parameters, that requires such large numbers?
 
Jan 19, 2011
596
14
Norman, OK
But seriously; what would you count, with DO loop parameters, that requires such large numbers?
Command line robo-dialer?

7,701,322,011 --> (770) 132-2011

"How about a nice game of chess?"
 

rps

Jul 6, 2008
426
5
Command line robo-dialer?

7,701,322,011 --> (770) 132-2011

"How about a nice game of chess?"
Yea! That single example is reason not to waste time on this suggestion; ever! IMHO, this would not be an improvement; more of a step backwards.

Unfortunately the chess reference is lost on me. :cool: