Calculator with selectable input/ouptup bases