I seem to be having an issue with a function I created for a numerology program I wrote.

I seem to be having an issue with a function I created for a numerology program I wrote.
when I wrote the function as part of the program, it works. when I decided to create the function as a separate function, I find that it doesn't work at all when it's called. 
I feel that it almost works. 
am I confusing function for procedure or am I missing something?
http://pastebin.com/gTycxGfQ

Comments

  1. Change to the following:

    life_number:=y+m+d;
    life_number:= number_convert(life_number);
    ( * it's around this point where I realise the function I created isn't being performed. * )
    writeln('Your life number is: ', life_number);

    Or in the number_convert method, change 'Result' to 'n':

    n ( * result * ):= tho+hun+sin1+sin2;

    Either one will fix it (I think) - but don't do both!

    ReplyDelete
  2. two hours after I posted, I fixed it (I had no way to see the response until now).
    the latter was exactly what I came up with. 
    thank you for responding.

    ReplyDelete

Post a Comment