Given : N45.5645E , How can I drop the number and get NE alone?
Programming Help 48GX
|
01-02-2005, 08:32 PM
01-02-2005, 09:37 PM
Hi, Rick; the following solution is completely focussed on User RPL, O.K.? If N45.5645E is a string, you could use the following routine: 2 OVER SIZE 1 - SUB OBJ->This only works if both left- and right-most characters must be discarded and the number within has a valid syntax. Hope this helps. (there are SYSRPL solutions, but I guess others can place them here; I'm just standing in front of the rabit's hole and observing...)
Luiz (Brazil) Edited: 2 Jan 2005, 9:38 p.m.
01-03-2005, 12:08 AM
Q:"Given : N45.5645E , How can I drop the number and get NE alone?"
01-03-2005, 12:22 AM
Hi, Rick; After reading VPN's (correct) answer I realized that I dropped what you wanted to be kept and kept what you wanted to drop... My mistake! Sorry...
01-03-2005, 05:39 AM
Glad for both solutions Luiz. I also needed the value.
01-03-2005, 08:12 AM
HI, Rick; if you want to put both in the same "package", maybe using local variables is easier. You can try this: (VPN, I'm using part of your 'engine', O.K.?) « DUP SIZE OVER -> S TThe program holds a copy of the original string and returns both the number and the two ASCII characters bordering it. If you don't need a copy of the original argument, you can try this one: « DUP SIZE -> T S Hope this is closer to what you actualy want. Cheers. Luiz (Brazil)
Edited: 3 Jan 2005, 10:26 a.m.
01-03-2005, 11:38 AM
One possible solution: |
« Next Oldest | Next Newest »
|
Possibly Related Threads… | |||||
Thread | Author | Replies | Views | Last Post | |
Programming the 48GX | John Rogers | 2 | 947 |
09-22-2005, 06:30 PM Last Post: John Rogers |
|
Custom Programming vs. Pre-packaged programming | Eddie Shore | 3 | 1,434 |
01-24-2005, 03:42 AM Last Post: Karl Schneider |
|
Programming speed on 48GX | Naim | 10 | 2,101 |
05-20-2004, 04:19 PM Last Post: Iqbal |