Converts bases and floating point representations