Post Reply 
Removing tag after units conversion
04-07-2015, 09:10 PM
Post: #5
RE: Removing tag after units conversion
(04-07-2015 02:14 AM)Joe Horn Wrote:  
(04-06-2015 07:49 PM)DrD Wrote:  You could just divide by one unit:

12_in/1_in ==> 12

CAS.left(unit) is more cryptic but it also works, e.g. CAS.left(12_in) returns 12. One benefit of this method is that you don't need to know the unit; it strips off ANY unit or combination of units.
Good solution Joe. I used the CAS method in my DTAG function for removing the units tag from the numerical result of a conversion on the 1st level stack.
Find all posts by this user
Quote this message in a reply
Post Reply 


Messages In This Thread
RE: Removing tag after units conversion - John Colvin - 04-07-2015 09:10 PM



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