def scale(c, quantitydesc, sysunits, stepfactors): return format( ms.scale(int(c), parse_quantity_desc(quantitydesc, sysunits), ms.basefactors(stepfactors)), sysunits)
def add(quantitydesc1, quantitydesc2, sysunits, stepfactors): return format( ms.add(parse_quantity_desc(quantitydesc1, sysunits), parse_quantity_desc(quantitydesc2, sysunits), ms.basefactors(stepfactors)), sysunits)
def base_format(quantityvec, sysunits, stepfactors): basevalue = str(ms.base(quantityvec, ms.basefactors(stepfactors))) return ' '.join([basevalue, sysunits[-1]])
def equal(quantitydesc1, quantitydesc2, sysunits, stepfactors): return ms.equal(parse_quantity_desc(quantitydesc1, sysunits), parse_quantity_desc(quantitydesc2, sysunits), ms.basefactors(stepfactors))