Post Reply 
Temperature conversion problem. Please help!
08-12-2017, 01:10 AM
Post: #4
RE: Temperature conversion problem. Please help!
(08-10-2017 07:35 AM)Didier Lachieze Wrote:  °C and °F temperature units have some restrictrictions as explained here.

Your program works if I replace the lines 37 & 38:

uFr := expr("1_" + unit[iPr,n]);
x := x * uFr;


by:

x := expr(x + "_" + unit[iPr,n]);

Thanks for the ideas, I'm learning a lot here!

I decided to go with Didier's solution. It's basically a string concationation to replace the need to multiply the units. Brilliant!

Thanks,
Jim
Find all posts by this user
Quote this message in a reply
Post Reply 


Messages In This Thread
RE: Temperature conversion problem. Please help! - Skyblues - 08-12-2017 01:10 AM



User(s) browsing this thread: 1 Guest(s)