converting decimal in other systems with bc

Hallo,

how can I convert number systems with bc?

I need to convert a decimal number to octal, dual or hex number...

in 'man bc' look into 'base' and 'obase'

Okay, I found it:
(bourne-shell)

#!/bin/sh
base=2 #for dual
number=10
echo "obase=${base};${number} | bc -l"