Jan 23, 2007 #1 Dorga MIS Jul 30, 2003 101 NZ N=`expr 001 + 1` ; echo $N returns 2 echo '001 + 1' | bc returns 2. I need something that would return 002 Ideas?
N=`expr 001 + 1` ; echo $N returns 2 echo '001 + 1' | bc returns 2. I need something that would return 002 Ideas?
Jan 23, 2007 #2 PHV MIS Nov 8, 2002 53,708 FR In a ksh-like shell: typeset -lZ3 N N=$((001 + 1)); echo $N Hope This Helps, PH. Want to get great answers to your Tek-Tips questions? Have a look at FAQ219-2884 or FAQ181-2886 Upvote 0 Downvote
In a ksh-like shell: typeset -lZ3 N N=$((001 + 1)); echo $N Hope This Helps, PH. Want to get great answers to your Tek-Tips questions? Have a look at FAQ219-2884 or FAQ181-2886
Jan 23, 2007 Thread starter #3 Dorga MIS Jul 30, 2003 101 NZ PHV, Perfect. =) Thank you. Upvote 0 Downvote