source/dcm_transform.py
def fmt_float(title, num, sep):
    """format all float numbers the same way but only if not zero"""
    try:
        if num != 0.0:
            val = title + "{:+06.1f}".format(num) + sep
        else:
            val = ''
    except Exception:
        val = '???' + sep

    return val
format all float numbers the same way but only if not zero
format all float numbers the same way but only if not zero
format all float numbers the same way but only if not zero
def fmt_float(title, num, sep):
    try:
        if num != 0.0:
            val = title + "{:+06.1f}".format(num) + sep
        else:
            val = ''
    except Exception:
        val = '???' + sep
    return val
def fmt_float ( title , num , sep ) : try : if num != 0.0 : val = title + "{:+06.1f}" . format ( num ) + sep else : val = '' except Exception : val = '???' + sep return val
format all float numbers the same way but only if not zero
format all float numbers the same way but only if not zero
"""format all float numbers the same way but only if not zero"""
title
num
sep