> > On Mon, Jan 1, 2018 at 5:20 AM, AndyHC <[email protected]> wrote: >> Just opened up a Command Window to list off 1/3 f stops - >> - why the curious indentation? >> >> CLEAR >> SET DECIMALS TO 2 >> SET FIXED ON >> x=1 >> mc=2^(1/6) >> FOR i = 1 TO 30 >> x=x*mc >> ?x >> NEXT >> ?
Ah! See it now. That *IS* weird. SET DECIMALS and SET FIXED are truly ancient xBase commands, and SET commands in general -- either global in scope or scoped to a datasession -- wreak all sorts of havoc with unintended side-effects. It's a lot better to specify what you want in the actual command than to depend on modifying the environment to suit program execution. Oh, okay. Try this: FOR i = 1 TO 30 ? ROUND((2^(1/6))^i,2) && compressed algorithm NEXT Fixed and decimals and printing to the screen are all pretty old-school, but you're running BASIC here, and not really FoxPro. -- Ted Roche Ted Roche & Associates, LLC http://www.tedroche.com _______________________________________________ Post Messages to: [email protected] Subscription Maintenance: http://mail.leafe.com/mailman/listinfo/profox OT-free version of this list: http://mail.leafe.com/mailman/listinfo/profoxtech Searchable Archive: http://leafe.com/archives/search/profox This message: http://leafe.com/archives/byMID/profox/CACW6n4u5bWNGFJenZUK0gNkrb7Qh5UnOqT-Z4sMqZKGJuW=s...@mail.gmail.com ** All postings, unless explicitly stated otherwise, are the opinions of the author, and do not constitute legal or medical advice. This statement is added to the messages for those lawyers who are too stupid to see the obvious.

