Can anybody plz help me to solve this puzzle?
amt=00002280674231
((amt = amt + 0)) # to remove leading zero's
echo $amt
prints -2014293065
but this works fine for numbers less than 2000000000.
Thanks
S
Can anybody plz help me to solve this puzzle?
amt=00002280674231
((amt = amt + 0)) # to remove leading zero's
echo $amt
prints -2014293065
but this works fine for numbers less than 2000000000.
Thanks
S
should have to do with that:
Use this instead...
$ x=00000000009822837365732994374589558483928287384458
$ echo ${x##+(0)}
9822837365732994374589558483928287384458
$
typeset -LZ amt also removes leading zero's