set up conversion from bits to shortreal and back