Try two applications of ?stripdollar followed by a concat.
(%i1) unitconcat(a,b) := concat( a,(?stripdollar(?stripdollar(b))))$
(%i2) unitconcat(milli,%newton);
(%o2) millinewton
%i3) unitconcat(milli,kg);
(%o3) millikg
(%i4)
Barton
-----maxima-admin@math.utexas.edu wrote: -----
>To: maxima@math.utexas.edu
>From: C Y
>I would like to be
>able to strip off the % for the purpose of
>concat(metricprefix,unit),
>e.g.
>
>unitconcat(milli,%unit) -> milliunit
>unitconcat(milli,unit1) -> milliunit1
>
>Anybody have ideas on the best way to do that?
>
>Thanks,
>CY