• DECLARING A REAL8 VARIABLE DOES NOT WORK

    From juan.chavarria.grillo@gmail.com@21:1/5 to All on Sat Mar 25 14:38:09 2023
    greetings:
    I am adding some values into a viariable declared as REAL8.
    But when the value es greater than 9,999,999,999 it's NTRIM(value) turn to ***********
    For example:

    LOCAL suma AS REAL 8, y as USUAL, i,n as INT
    suma:=REAL8(0) // I tried with REAL8(0) but the problem persists
    FOR i=1 to n
    y:=somefunction()
    IF UsualType(y)=FLOAT.or.UsualType(y)=LONGINT
    suma:=suma+y
    WarningBox{,"SUMA",+NTRIM(suma)}:show()
    ENDIF
    NEXT i
    Thanks for any help
    Juan

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From Phil McGuinness@21:1/5 to All on Sun Mar 26 18:43:04 2023
    Why not use a FLOAT

    REAL8 has some inconsistent behavious for business $.C work

    Phil

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From juan.chavarria.grillo@gmail.com@21:1/5 to All on Mon Mar 27 19:16:53 2023
    El domingo, 26 de marzo de 2023 a la(s) 19:43:05 UTC-6, Phil McGuinness escribió:
    Why not use a FLOAT

    REAL8 has some inconsistent behavious for business $.C work

    Phil
    Thanks for your advice. I will consider it.
    I have to tell you that finally I found that the problem was with the SetDigit() function.
    I incressed its value from the default (10) to 15 and the problem was solved. :)
    Thank you very much.

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)