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

  • This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn more.
Jul 6, 2008
255
4
#2
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
561
7
Norman, OK
#3
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?"
 
Jul 6, 2008
255
4
#4
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: