def _floatfmt(val):

    if int(val) == val:
        return "%.1f"
    else:
        return "%.16g"
Returns the output format for a floating point number.
dataset/ETHPy150Open OpenMDAO/OpenMDAO/openmdao/util/namelist_util.py/_floatfmt