FLOAT in C function...

  • dmitry
  • Topic Author
  • Offline
  • New Member
  • New Member
More
17 years 3 months ago #2080 by dmitry
FLOAT in C function... was created by dmitry
Hello everybody. I have following problem.



I just try to receive FLOAT value form C function but it returns incorrect value. I can't understand why...



C file



#include

#include



FLOAT GetVal()

{

float val = 234.132;

return(val);

}



Subroutine



SUBROUTINE ARRSUMB



DEFC FLOAT GetVal()

VAL = GetVal()

CRT VAL



RETURN

END



Result

0.0234

Please Log in or Create an account to join the conversation.

Time to create page: 0.035 seconds