On Sat, Feb 8, 2025 at 8:51 AM Robert Elz <k...@munnari.oz.au> wrote:
> > There are a gazillion different ways of getting rid of the octal > conversion "problem", one I prefer in cases where I know the value > is 2 digits, always, but might be 0n for 0<=n<=9, is $(( 1$x - 100 )) > > kre > > gazillion++ You say "I know the value is 2 digits" you forgot to say in base 10 but it was kinda implicit in the thread, then a more general one not limited to 2 decimal digit accepting leading 0 you could simply do $((10#$i)) That really sez you expect a base 10, some more readable I think... (may be)