'Regression test for https://github.com/astropy/astropy/issues/3422'

def test_zero_precision_float_column(self):

    c = fits.Column('TEST', 'F5.0', array=[1.1, 2.2, 3.3])
    t = fits.TableHDU.from_columns([c])
    t.writeto(self.temp('test.fits'))
    with fits.open(self.temp('test.fits')) as hdul:
        assert (hdul[1].header['TFORM1'] == 'F5.0')
        assert (hdul[1].data['TEST'].dtype == np.dtype('float64'))
        assert np.all((hdul[1].data['TEST'] == [1.0, 2.0, 3.0]))
        raw = np.rec.recarray.field(hdul[1].data, 'TEST')
        assert (raw.tostring() == '            1.            2.            3.')
