Re: incrementing a decimal...

2017-11-07 Thread Nicolas Cueto via use-livecode
Monte Goulding's solution was what I was after. Thank you. -- Nicolas Cueto On 8 November 2017 at 09:45, Monte Goulding via use-livecode < use-livecode@lists.runrev.com> wrote: > Something like: > > put “3.33.007" into tValue > set the itemDelimiter to "." > put format("%s.%03d", item 1 to 2

Re: incrementing a decimal...

2017-11-07 Thread hh via use-livecode
put 33.000 into x put 34.123 into y put 0.001 into stp repeat with i=x to y-stp/2 step stp put format("3.%.3f",i) & cr after lst end repeat ___ use-livecode mailing list use-livecode@lists.runrev.com Please visit this url to subscribe, unsubscribe

Re: incrementing a decimal...

2017-11-07 Thread Monte Goulding via use-livecode
> On 8 Nov 2017, at 11:45 am, Monte Goulding via use-livecode > wrote: > > Something like: > > put “3.33.007" into tValue > set the itemDelimiter to "." > put format("%s.%03d", item 1 to 2 of tValue, item 3 of tValue + 1) into > tNextValue Actually probably

Re: incrementing a decimal...

2017-11-07 Thread Monte Goulding via use-livecode
Something like: put “3.33.007" into tValue set the itemDelimiter to "." put format("%s.%03d", item 1 to 2 of tValue, item 3 of tValue + 1) into tNextValue > On 8 Nov 2017, at 11:22 am, Nicolas Cueto via use-livecode > wrote: > > I'm after an easy way to convert

incrementing a decimal...

2017-11-07 Thread Nicolas Cueto via use-livecode
I'm after an easy way to convert span 3.33.007-3.33.012 into this incremental cr-del list: 3.33.007 3.33.008 3.33.009 3.33.010 3.33.011 3.33.012 >From experience, I know if I add 1 to "07" the result is "8" and not "08". Thank you. -- Nicolas ___