Ask Me Help Desk

Ask Me Help Desk (https://www.askmehelpdesk.com/forum.php)
-   Internet & the Web (https://www.askmehelpdesk.com/forumdisplay.php?f=177)
-   -   Routine not functioning properly (https://www.askmehelpdesk.com/showthread.php?t=5993)

  • Oct 11, 2004, 06:51 AM
    kepler
    Routine not functioning properly
    Hi,

    I have a routine with the following structure:

    void GetGST(double jed, int s, double gst) {
    (... code goes here to determine gst)
    }

    The problem is that, in a loop statement, I call the routine for the first time and it returns a valid value; in the following calls it gives results without sense! For instance, it gives first 6.5 ( it nevers suppose to give values greater that two PI ), and in the second call it gives 1000!

    I used also the code:

    void GetGST(double jed, int s, double *gst) {
    (... code goes here to determine *gst)
    }

    but the same thing happens.

    What am I doing wrong?

    Best regards,

    Kepler

  • All times are GMT -7. The time now is 10:38 PM.