| 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 supose 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 |