Community Tip - Did you get an answer that solved your problem? Please mark it as an Accepted Solution so others with the same problem can find the answer easily.
X
I am trying to format a length into feet and inches, and am having trouble with the format command. I have the values of feet and inches calculated as integers and would like to combine them into a result as a text string.
On 6/26/2009 3:22:58 PM, ucicrestengrg wrote: == I am trying to format a length into feet and inches, and am having trouble with the format command. I have the values of feet and inches calculated as integers and would like to combine them into a result as a text string.
do you mean something like the attached?
Stuart
ftin(ft,in):=concat(num2str(ft)," ft ",num2str(in), " in")
Yes, I used something similar for a workaround. I was hoping somebody had a good example of the format command, as that would do it a little more cleanly. Thanks
On 6/26/2009 4:28:00 PM, ucicrestengrg wrote: == Yes, I used something similar for a workaround. I was hoping somebody had a good example of the format command, as that would do it a little more cleanly.