Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.clipper.visual-objects > #13789 > unrolled thread

DECLARING A REAL8 VARIABLE DOES NOT WORK

Started by"juan.chava...@gmail.com" <juan.chavarria.grillo@gmail.com>
First post2023-03-25 14:38 -0700
Last post2023-03-27 19:16 -0700
Articles 3 — 2 participants

Back to article view | Back to comp.lang.clipper.visual-objects


Contents

  DECLARING A REAL8 VARIABLE DOES NOT WORK "juan.chava...@gmail.com" <juan.chavarria.grillo@gmail.com> - 2023-03-25 14:38 -0700
    Re: DECLARING A REAL8 VARIABLE DOES NOT WORK Phil McGuinness <mcguinnesssherlock@gmail.com> - 2023-03-26 18:43 -0700
      Re: DECLARING A REAL8 VARIABLE DOES NOT WORK "juan.chava...@gmail.com" <juan.chavarria.grillo@gmail.com> - 2023-03-27 19:16 -0700

#13789 — DECLARING A REAL8 VARIABLE DOES NOT WORK

From"juan.chava...@gmail.com" <juan.chavarria.grillo@gmail.com>
Date2023-03-25 14:38 -0700
SubjectDECLARING A REAL8 VARIABLE DOES NOT WORK
Message-ID<73cf49f5-e761-42e9-8fcc-8ee1dcdddc94n@googlegroups.com>
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

[toc] | [next] | [standalone]


#13790

FromPhil McGuinness <mcguinnesssherlock@gmail.com>
Date2023-03-26 18:43 -0700
Message-ID<01ffd193-b6a1-462a-a971-9ac1467a6db4n@googlegroups.com>
In reply to#13789
Why not use a FLOAT

REAL8 has some inconsistent behavious for business $.C work

Phil

[toc] | [prev] | [next] | [standalone]


#13792

From"juan.chava...@gmail.com" <juan.chavarria.grillo@gmail.com>
Date2023-03-27 19:16 -0700
Message-ID<c030ff2f-d66d-4cfa-8d36-289feece534cn@googlegroups.com>
In reply to#13790
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.

[toc] | [prev] | [standalone]


Back to top | Article view | comp.lang.clipper.visual-objects


csiph-web