For Loop - "Units are not compatible" Error
Stupid question...I'm just getting back into MathCAD (Prime 7.0) after several years absence...
I'm trying to see if create a simple routine that will automatically strip the units from a variable and display only the numeric portion...so I can turn it into a string and use it in text functions. Essentially what I have right now...
The routine divides out the SIUnitsOf(variable) and multiplies that by a conversion factor that it sequentially looks up in a matrix.
And it divides the variable by the conversion factor's base unit (from the same matrix).
When I type out the procedure for an individual case, it gives the expected answer.
When I try to put that procedure into a "for" loop, it gives me an unexpected "These units are not compatible" error.
...can anyone see what am I doing wrong?





