Post Reply 
Returning multiple numbers onto the stack
10-30-2014, 02:42 PM
Post: #1
Returning multiple numbers onto the stack
I have what I am sure may seem like a rather simple question to most of you I am sure.

I am a surveyor, and am working on several different ways of calculating points with my prime. I love the calculator, and it is quite the discussion piece amongst surveyors to say the least.

An example of my problem is outlined here:

EXPORT Traverse (n, e, ang, dist)

BEGIN
LOCAL a,b;

a:= cos(ang)*dist;

b:= sin(and)*dist;

return (n+a,e+b);

END;


Now this returns me Coordinates in the format (xxxxxx.xxx , yyyyyy.yyy) Which is ok, but i would like to have them as separate numbers on the stack for traversing forward. I have tried using multiple Return statements, tried all kinds of things but i cannot seem to get it down. please help!
Find all posts by this user
Quote this message in a reply
Post Reply 


Messages In This Thread
Returning multiple numbers onto the stack - Jm9301 - 10-30-2014 02:42 PM



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