14-Alexandrite
January 19, 2023
Solved
Matrix Bug? Storing an integer zero in a matrix of mixed items gets returned as a value with unit
- January 19, 2023
- 1 reply
- 3735 views
Mathcad Prime 8.0.0.0.0.0.0
So I am trying to store mixed data in a matrix. It is the only way to pass optional parameters to a user defined function. One of the parameters I am trying to pass is an integer (in my case representing the number of passes of welds in a welded structure). But when I supply a zero, my program reads the number as 0•m (or whatever units I set the document to.
See the attached Mathcad Prime sheet. Here is a screenshot if you can't duplicate my error

One possible workaround is to resolve the value this way: a / SIUnitsOf(a)
That should strip any value that is in meters of it's unit, but will not work for other units like when Unit System = USCS
Any other suggestions?



