bc works fine!
$ echo "0 + 0" | bc
0
$ echo "0 + 1" | bc
1
$ echo "1 + 0" | bc
1
$ echo "1 + 1" | bc
2
$ echo "302332 + 1" | bc
302333
$
Regards
-- Franz
Sorry I'm not a native spaeker, I'm from Munich, Germany - "Home of the Whopper", oh no, "Home of the Oktoberfest" ;-)
Solaris System Manager; I used to work for Sun Microsystems Support (EMEA) for 5 years