Welcome!

By registering with us, you'll be able to discuss, share and private message with other members of our community.

SignUp Now!

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

May
13,190
180
v:\> do i=7701322010 to 7701322015 (echo %@eval[i+1])
-888612581
-888612580
-888612579
-888612578
-888612577
-888612576
 
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?
 
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?"
 
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:
 
Unfortunately the chess reference is lost on me. :cool:

It's from a 1983 movie: War Games. Using a robo-dialer, he located the backdoor to a military computer.
 
Back
Top
[FOX] Ultimate Translator
Translate