Announcement

Collapse
No announcement yet.

Why I hate Windows - even with PBCC

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • Why I hate Windows - even with PBCC

    Can somebody help......below is a simple little program to read a graphic file in a standard NASA output format and plot it using a graphic window. It usually works the first time, but not always. After the graphic is drawn, the console returns and gives options to flip and invert the drawing. Most of the time, this second drawing loses some of the lines. The input file is the same. The program is the same. The drawing is different.

    Copy the code below to PBCC, and copy the file at the end to a text file named HLP.PLT.

    Can anybody figure this out?
    Code:
    -----------------------------------------------------------
    
    
    '-------------------------------------------------------------------------
    '                      DanPlot-Win              4-08
    '--------------------------------------------------------------------------
    
    #CONSOLE ON  'OFF
    #REGISTER NONE
    
    '----------DEFINITION OF VARIABLES (I-N ARE LONG INTEGERS)-------------
    DEFSNG a-h
    DEFSNG o-z
    DEFSNG k,l        'not integer !
    DEFLNG i,j,m,n    'was DEFLNG i-n in RDSDOS - no k or l here
    
    '------------------------------------------------------------------------
    '----------  WINMAIN FUNCTION THAT PBCC REQUIRES AS FRAMEWORK FOR CODE  --------------------
    '-------------------------------------------------------------------------------------------
    
    FUNCTION WINMAIN(BYVAL hCurInstance  AS LONG, BYVAL hPrevInstance AS LONG, _
                          BYVAL lpszCmdLine AS ASCIIZ PTR, BYVAL nCmdShow AS LONG) EXPORT AS LONG
    
    DIM DIGIT$(10),DIGIT(10),MENU$(5),GX(10,20),GY(10,20),GKEYL(10),GKEYL$(10),SLOPE(20)
    DIM COLNAME$(25),ROWNAME$(25),RNAME$(75),CONV(20,10),PNAME$(100)
    DIM L$(500)  'needed for DLM scaling routine, used to make output strings for Print#
    DIM OutStrng$(50),MENUTXT$(10)   'text for output & menus -used in RDS-Win
    DIM Tx$(50)
    
    T9$=STRING$(40,205)     ' ---------actually double line for DOS
    
    CONSOLE SET SCREEN 25,40
    CONSOLE SET LOC 1,1
    COLOR 0,15
    CLS
    CONSOLE SET FOCUS                                    'calls Console back to focus, brings to front
    
    IF DIR$("DANPLOT.CON")>"" THEN
       OPEN "DANPLOT.CON" FOR INPUT AS #1
       INPUT #1,SquareIt!,iFlip,CONVERTX,CONVERTY,ICOLCNT
       CLOSE
       ELSE
       SquareIt!=1
       CONVERTX=1.        'FUDGE TO CONVERT X AXIS DATA
       CONVERTY=1.        'FUDGE TO CONVERT Y AXIS DATA
       iFlip=0            '=1 says flip X & Y axis
       END IF
    
    LOCATE 2,1
    PRINT T9$
    PRINT SPACE$(2)+"RAYMER'S SIMPLE WINDOWS X-Y PLOTTING"
    PRINT SPACE$(2)+"PROGRAM FOR .PLT FORMATTED PLOT FILES"
    PRINT T9$
    PRINT SPACE$(3)+"1st line is text for title"
    PRINT SPACE$(3)+"Remaining lines are X  Y values"
    PRINT SPACE$(3)+" (separated by space or comma)"
    PRINT SPACE$(3)+"Blank lines used for pen lift"
    PRINT T9$
    PRINT SPACE$(3)+"Enter plot file name"
    PRINT SPACE$(3)+" (default = HLP.PLT):   ";
    INPUT ,A$
    IF A$<>"" THEN FLNAME$=A$ ELSE FLNAME$="HLP.PLT"
                         
    LOCAL hWin AS DWORD
    DESKTOP GET CLIENT TO ncWidth&, ncHeight&         'makes full screen graphics window
    DESKTOP GET LOC TO x&, y&
    GRAPHIC WINDOW "DanPlot-Win", x&+1, y&+1, ncWidth&-2, ncHeight&-2 TO hWin
    GRAPHIC ATTACH hWin, 0, REDRAW      'to buffer until GRAPHIC REDRAW statement (faster)
    GRAPHIC COLOR %BLACK,%WHITE
    GRAPHIC SET FOCUS                                    'calls Graphic Window back to focus, brings to front
    
    XscreenMin=0
    YscreenMin=0
    XscreenMax=1000
    YscreenMax=XscreenMax*ROUND((ncHeight&-2)/(ncWidth&-2),0)
           
    28000    GRAPHIC SCALE (XscreenMin-10,YscreenMax+10) - (XscreenMax+10,YscreenMin-50)   'PB-DOS: WINDOW (-140,-140) - (1020,625)
                  'leaving 10 pixel border around used window, 50 at bottom for taskbar
    
     '   ***********************FIND SCALE FACTORS
      IBfree=FREEFILE
      OPEN FLNAME$ FOR INPUT AS #IBfree
      LINE INPUT #IBfree, GRAPH$            'first line is title text to print
      LINE INPUT #IBfree,DUM$
      INPUT #IBfree, Xin,Yin
      GOSUB FIXINPUTS   'fudge and/or switch X & Y axis - see bottom
      XMAX=Xin
      XMIN=Xin
      YMAX=Yin
      YMIN=Yin
      WHILE NOT EOF(IBfree)
       ibNextChar&=SEEK(IBfree)   'returns record number of next to be read (counts by character, not line#)
       LINE INPUT #IBfree, dum$
       IF LTRIM$(dum$)<>"" THEN
         SEEK #IBfree,ibNextChar&   'go back to start of line just read
         INPUT #IBfree, Xin,Yin
         GOSUB FIXINPUTS   'fudge and/or switch X & Y axis - see bottom
         IF Xin>XMAX THEN XMAX=Xin
         IF Xin<XMIN THEN XMIN=Xin
         IF Yin>YMAX THEN YMAX=Yin
         IF Yin<YMIN THEN YMIN=Yin
         END IF
       WEND
      CLOSE #IBfree
    
    XSCALE=(XMAX-XMIN)/(XscreenMax-XscreenMin)
    YSCALE=(YMAX-YMIN)/(YscreenMax-YscreenMin)
    
    28001  'loops back here to redraw
      GRAPHIC SET FOCUS                                    'calls Graphic Window back to focus, brings to front
      GRAPHIC CLEAR     'like CLS which is used for Console
      IBfree=FREEFILE   'now read again and draw
      OPEN FLNAME$ FOR INPUT AS #IBfree
      LINE INPUT #IBfree, GRAPH$            'first line is title text to print
      INPUT #IBfree,Xin,Yin            'next line is first point
      GOSUB FIXINPUTS   'fudge and/or switch X & Y axis - see bottom
      GRAPHIC SET POS ((Xin-XMIN)/XSCALE,SquareIt!*(Yin-YMIN)/YSCALE)          'PB-DOS: PSET
      iLiftPen=0
      WHILE NOT EOF(IBfree)
       ibNextChar&=SEEK(IBfree)   'returns record number of next to be read (counts by character, not line#)
       LINE INPUT #IBfree, dum$
         IF LTRIM$(dum$)<>"" THEN
         SEEK #IBfree,ibNextChar&   'go back to start of line just read
         INPUT #IBfree, Xin,Yin
         GOSUB FIXINPUTS   'fudge and/or switch X & Y axis - see bottom
         IF iLiftPen=0 THEN
            GRAPHIC LINE -((Xin-XMIN)/XSCALE,SquareIt!*(Yin-YMIN)/YSCALE)      'PB-DOS: LINE
            ELSE
            GRAPHIC SET POS ((Xin-XMIN)/XSCALE,SquareIt!*(Yin-YMIN)/YSCALE)    'PB-DOS: PSET
            END IF
         iLiftPen=0        'for next draw
         ELSE
         iLiftPen=1        'for next draw
         END IF
       WEND
      CLOSE #IBfree
    
    28070
    GRAPHIC SET POS (.3*(Xmax-XMIN)/XSCALE,.025*SquareIt!*(Ymax-YMIN)/YSCALE)    'PB-DOS: PSET
    GRAPHIC FONT "Times New Roman", 14, 3
    GRAPHIC PRINT "DANPLOT (File "+FLNAME$+"): "+GRAPH$
    
    GRAPHIC REDRAW
    SLEEP 3000
    
    CONSOLE SET FOCUS                                    'calls Console back to focus, brings to front
    CLS
    PRINT T9$
    PRINT SPACE$(2)+"RAYMER'S SIMPLE WINDOWS X-Y PLOTTING"
    PRINT SPACE$(2)+"PROGRAM FOR .PLT FORMATTED PLOT FILES"
    PRINT T9$
    PRINT "  F=FlipAxis    ESC=exit"
    PRINT
    
    S$=""   'LOOPS TO HERE UNTIL KEY PRESSED
    WHILE S$=""
      D$=UCASE$(INKEY$)
      S$=RIGHT$(D$,1)
      WEND
    IF S$="!" OR S$=CHR$(27) THEN
       OPEN "DANPLOT.CON" FOR OUTPUT AS #1
       PRINT #1,SquareIt!,iFlip,CONVERTX,CONVERTY,ICOLCNT
       PRINT #1,
       CLOSE
       END
       END IF
    
    IF S$="F" THEN    'FLIP OR SWITCH AXIS
       LOCATE 29,1
       PRINT SPACE$(80);
       LOCATE 30,1
       PRINT SPACE$(80);
       CONVERTX=1.        'FUDGE TO CONVERT X AXIS DATA
       CONVERTY=1.        'FUDGE TO CONVERT Y AXIS DATA
       iFlip=0            '=1 says flip X & Y axis
       LOCATE 27,1
       PRINT "  Flip X axis ? (Y/N  default=N) ";
       INPUT, A$
       IF UCASE$(A$)="Y" THEN CONVERTX=-1.
       LOCATE 28,1
       PRINT "  Flip Y axis ? (Y/N  default=N) ";
       INPUT, A$
       IF UCASE$(A$)="Y" THEN CONVERTY=-1.
       LOCATE 29,1
       PRINT "  Switch X & Y axis? (default=N) ";
       INPUT, A$
       IF UCASE$(A$)="Y" THEN iFlip=1
       CLS
       GOTO 28000
       END IF
    END
    
    FIXINPUTS:
      IF iFlip=0 THEN
         Xin=Xin*CONVERTX
         Yin=Yin*CONVERTY
         ELSE
         Dum=Yin
         Yin=Xin*CONVERTX
         Xin=Dum*CONVERTY
         END IF
      RETURN
    
    END
    END FUNCTION  '------  END OF WINMAIN FUNCTION REQUIRED AS FRAMEWORK FOR CODE  -------------
    '-------------------------------------------------------------------------------------------
    >>>>>>>>>>>>>>>input file follows - name it HLP.PLT<<<<<<<<<<<<<<<
    Sample Plot File from NASA hidden line code
    Code:
        -4.4879E+01    -3.0448E+01
        -4.4879E+01    -3.0448E+01
        -4.0384E+01    -2.7864E+01
        -4.0384E+01    -2.7864E+01
        -3.9919E+01    -2.8886E+01
        -3.9919E+01    -2.8886E+01
        -4.4879E+01    -3.0448E+01
    
        -4.4879E+01    -3.0448E+01
        -4.4879E+01    -3.0448E+01
        -3.9640E+01    -2.9784E+01
        -3.9640E+01    -2.9784E+01
        -3.9919E+01    -2.8886E+01
    
        -3.9919E+01    -2.8886E+01
    
        -4.0384E+01    -2.7864E+01
        -3.5986E+01    -2.5515E+01
        -3.5986E+01    -2.5515E+01
        -3.5249E+01    -2.7132E+01
        -3.5249E+01    -2.7132E+01
        -3.9919E+01    -2.8886E+01
    
        -3.9919E+01    -2.8886E+01
    
        -3.9640E+01    -2.9784E+01
        -3.4809E+01    -2.8554E+01
        -3.4809E+01    -2.8554E+01
        -3.5249E+01    -2.7132E+01
    
        -3.5249E+01    -2.7132E+01
    
        -3.5986E+01    -2.5515E+01
        -3.1685E+01    -2.3398E+01
        -3.1685E+01    -2.3398E+01
        -3.0870E+01    -2.5188E+01
        -3.0870E+01    -2.5188E+01
        -3.5249E+01    -2.7132E+01
    
        -3.5249E+01    -2.7132E+01
    
        -3.4809E+01    -2.8554E+01
        -3.0382E+01    -2.6762E+01
        -3.0382E+01    -2.6762E+01
        -3.0870E+01    -2.5188E+01
    
        -3.0870E+01    -2.5188E+01
    
        -3.1685E+01    -2.3398E+01
        -2.7424E+01    -2.1376E+01
        -2.7424E+01    -2.1376E+01
        -2.6608E+01    -2.3166E+01
        -2.6608E+01    -2.3166E+01
        -3.0870E+01    -2.5188E+01
    
        -3.0870E+01    -2.5188E+01
    
        -3.0382E+01    -2.6762E+01
        -2.6121E+01    -2.4740E+01
        -2.6121E+01    -2.4740E+01
        -2.6608E+01    -2.3166E+01
    
        -2.6608E+01    -2.3166E+01
    
        -2.7424E+01    -2.1376E+01
        -2.3163E+01    -1.9353E+01
        -2.3163E+01    -1.9353E+01
        -2.2347E+01    -2.1144E+01
        -2.2347E+01    -2.1144E+01
        -2.6608E+01    -2.3166E+01
    
        -2.6608E+01    -2.3166E+01
    
        -2.6121E+01    -2.4740E+01
        -2.1859E+01    -2.2718E+01
        -2.1859E+01    -2.2718E+01
        -2.2347E+01    -2.1144E+01
    
        -2.2347E+01    -2.1144E+01
    
        -2.3163E+01    -1.9353E+01
        -1.8901E+01    -1.7331E+01
        -1.8901E+01    -1.7331E+01
        -1.8085E+01    -1.9122E+01
        -1.8085E+01    -1.9122E+01
        -2.2347E+01    -2.1144E+01
    
        -2.2347E+01    -2.1144E+01
    
        -2.1859E+01    -2.2718E+01
        -1.7598E+01    -2.0696E+01
        -1.7598E+01    -2.0696E+01
        -1.8085E+01    -1.9122E+01
    
        -1.8085E+01    -1.9122E+01
    
        -1.8901E+01    -1.7331E+01
        -1.4640E+01    -1.5309E+01
        -1.4640E+01    -1.5309E+01
        -1.3824E+01    -1.7099E+01
        -1.3824E+01    -1.7099E+01
        -1.8085E+01    -1.9122E+01
    
        -1.8085E+01    -1.9122E+01
    
        -1.7598E+01    -2.0696E+01
        -1.3337E+01    -1.8674E+01
        -1.3337E+01    -1.8674E+01
        -1.3824E+01    -1.7099E+01
    
        -1.3824E+01    -1.7099E+01
    
        -1.4640E+01    -1.5309E+01
        -1.0378E+01    -1.3287E+01
        -1.0378E+01    -1.3287E+01
        -9.5626E+00    -1.5077E+01
        -9.5626E+00    -1.5077E+01
        -1.3824E+01    -1.7099E+01
    
        -1.3824E+01    -1.7099E+01
    
        -1.3337E+01    -1.8674E+01
        -9.0751E+00    -1.6652E+01
        -9.0751E+00    -1.6652E+01
        -9.5626E+00    -1.5077E+01
    
        -9.5626E+00    -1.5077E+01
    
        -1.0378E+01    -1.3287E+01
        -6.1167E+00    -1.1265E+01
        -6.1167E+00    -1.1265E+01
        -5.3011E+00    -1.3055E+01
        -5.3011E+00    -1.3055E+01
        -9.5626E+00    -1.5077E+01
    
        -9.5626E+00    -1.5077E+01
    
        -9.0751E+00    -1.6652E+01
        -4.8136E+00    -1.4630E+01
        -4.8136E+00    -1.4630E+01
        -5.3011E+00    -1.3055E+01
    
        -5.3011E+00    -1.3055E+01
    
        -6.1167E+00    -1.1265E+01
        -1.8552E+00    -9.2433E+00
        -1.8552E+00    -9.2433E+00
        -1.0396E+00    -1.1033E+01
        -1.0396E+00    -1.1033E+01
        -5.3011E+00    -1.3055E+01
    
        -5.3011E+00    -1.3055E+01
    
        -4.8136E+00    -1.4630E+01
        -5.5214E-01    -1.2608E+01
        -5.5214E-01    -1.2608E+01
        -1.0396E+00    -1.1033E+01
    
        -1.0396E+00    -1.1033E+01
    
        -1.8552E+00    -9.2433E+00
         2.4062E+00    -7.2212E+00
         2.4062E+00    -7.2212E+00
         3.2218E+00    -9.0113E+00
         3.2218E+00    -9.0113E+00
        -1.0396E+00    -1.1033E+01
    
        -1.0396E+00    -1.1033E+01
    
        -5.5214E-01    -1.2608E+01
         3.7093E+00    -1.0586E+01
         3.7093E+00    -1.0586E+01
         3.2218E+00    -9.0113E+00
    
         3.2218E+00    -9.0113E+00
    
         2.4062E+00    -7.2212E+00
         6.6677E+00    -5.1992E+00
         6.6677E+00    -5.1992E+00
         7.4833E+00    -6.9893E+00
         7.4833E+00    -6.9893E+00
         3.2218E+00    -9.0113E+00
    
         3.2218E+00    -9.0113E+00
    
         3.7093E+00    -1.0586E+01
         7.9708E+00    -8.5635E+00
         7.9708E+00    -8.5635E+00
         7.4833E+00    -6.9893E+00
    
         7.4833E+00    -6.9893E+00
    
         6.6677E+00    -5.1992E+00
         1.0929E+01    -3.1771E+00
         1.0929E+01    -3.1771E+00
         1.1745E+01    -4.9672E+00
         1.1745E+01    -4.9672E+00
         7.4833E+00    -6.9893E+00
    
         7.4833E+00    -6.9893E+00
    
         7.9708E+00    -8.5635E+00
         1.2232E+01    -6.5414E+00
         1.2232E+01    -6.5414E+00
         1.1745E+01    -4.9672E+00
    
         1.1745E+01    -4.9672E+00
    
         1.0929E+01    -3.1771E+00
         1.5191E+01    -1.1551E+00
         1.5191E+01    -1.1551E+00
         1.6006E+01    -2.9452E+00
         1.6006E+01    -2.9452E+00
         1.1745E+01    -4.9672E+00
    
         1.1745E+01    -4.9672E+00
    
         1.2232E+01    -6.5414E+00
         1.6494E+01    -4.5194E+00
         1.6494E+01    -4.5194E+00
         1.6006E+01    -2.9452E+00
    
         1.6006E+01    -2.9452E+00
    
         1.5191E+01    -1.1551E+00
         1.9452E+01     8.6697E-01
         1.9452E+01     8.6697E-01
         2.0268E+01    -9.2313E-01
         2.0268E+01    -9.2313E-01
         1.6006E+01    -2.9452E+00
    
         1.6006E+01    -2.9452E+00
    
         1.6494E+01    -4.5194E+00
         2.0755E+01    -2.4973E+00
         2.0755E+01    -2.4973E+00
         2.0268E+01    -9.2313E-01
    
         2.0268E+01    -9.2313E-01
    
         1.9452E+01     8.6697E-01
         2.3714E+01     2.8890E+00
         2.3714E+01     2.8890E+00
         2.4529E+01     1.0989E+00
         2.4529E+01     1.0989E+00
         2.0268E+01    -9.2313E-01
    
         2.0268E+01    -9.2313E-01
    
         2.0755E+01    -2.4973E+00
         2.5017E+01    -4.7529E-01
         2.5017E+01    -4.7529E-01
         2.4529E+01     1.0989E+00
    
         2.4529E+01     1.0989E+00
    
         2.3714E+01     2.8890E+00
         2.7975E+01     4.9111E+00
         2.7975E+01     4.9111E+00
         2.8791E+01     3.1210E+00
         2.8791E+01     3.1210E+00
         2.4529E+01     1.0989E+00
    
         2.4529E+01     1.0989E+00
    
         2.5017E+01    -4.7529E-01
         2.9278E+01     1.5467E+00
         2.9278E+01     1.5467E+00
         2.8791E+01     3.1210E+00
    
         2.8791E+01     3.1210E+00
    
         2.7975E+01     4.9111E+00
         3.2236E+01     6.9331E+00
         3.2236E+01     6.9331E+00
         3.3052E+01     5.1430E+00
         3.3052E+01     5.1430E+00
         2.8791E+01     3.1210E+00
    
         2.8791E+01     3.1210E+00
    
         2.9278E+01     1.5467E+00
         3.3540E+01     3.5688E+00
         3.3540E+01     3.5688E+00
         3.3052E+01     5.1430E+00
    
         3.3052E+01     5.1430E+00
    
         3.2236E+01     6.9331E+00
         3.6498E+01     8.9552E+00
         3.6498E+01     8.9552E+00
         3.7314E+01     7.1651E+00
         3.7314E+01     7.1651E+00
         3.3052E+01     5.1430E+00
    
         3.3052E+01     5.1430E+00
    
         3.3540E+01     3.5688E+00
         3.7801E+01     5.5908E+00
         3.7801E+01     5.5908E+00
         3.7314E+01     7.1651E+00
    
         3.7314E+01     7.1651E+00
    
         3.6498E+01     8.9552E+00
         4.0759E+01     1.0977E+01
         4.0759E+01     1.0977E+01
         4.1575E+01     9.1871E+00
         4.1575E+01     9.1871E+00
         3.7314E+01     7.1651E+00
    
         3.7314E+01     7.1651E+00
    
         3.7801E+01     5.5908E+00
         4.2062E+01     7.6129E+00
         4.2062E+01     7.6129E+00
         4.1575E+01     9.1871E+00
    
        -4.4879E+01    -3.0448E+01
        -4.4879E+01    -3.0448E+01
        -4.0912E+01    -2.6993E+01
        -4.0912E+01    -2.6993E+01
        -4.0384E+01    -2.7864E+01
    
        -4.4879E+01    -3.0448E+01
        -4.4879E+01    -3.0448E+01
        -3.9624E+01    -3.0318E+01
        -3.9624E+01    -3.0318E+01
        -3.9640E+01    -2.9784E+01
    
        -4.0384E+01    -2.7864E+01
    
        -4.0912E+01    -2.6993E+01
        -3.6822E+01    -2.4135E+01
        -3.6822E+01    -2.4135E+01
        -3.5986E+01    -2.5515E+01
    
        -3.9640E+01    -2.9784E+01
    
        -3.9624E+01    -3.0318E+01
        -3.4783E+01    -2.9401E+01
        -3.4783E+01    -2.9401E+01
        -3.4809E+01    -2.8554E+01
    
        -3.5986E+01    -2.5515E+01
    
        -3.6822E+01    -2.4135E+01
        -3.2611E+01    -2.1871E+01
        -3.2611E+01    -2.1871E+01
        -3.1685E+01    -2.3398E+01
    
        -3.4809E+01    -2.8554E+01
    
        -3.4783E+01    -2.9401E+01
        -3.0354E+01    -2.7698E+01
        -3.0354E+01    -2.7698E+01
        -3.0382E+01    -2.6762E+01
    
        -3.1685E+01    -2.3398E+01
    
        -3.2611E+01    -2.1871E+01
        -2.8349E+01    -1.9849E+01
        -2.8349E+01    -1.9849E+01
        -2.7424E+01    -2.1376E+01
    
        -3.0382E+01    -2.6762E+01
    
        -3.0354E+01    -2.7698E+01
        -2.6092E+01    -2.5676E+01
        -2.6092E+01    -2.5676E+01
        -2.6121E+01    -2.4740E+01
    
        -2.7424E+01    -2.1376E+01
    
        -2.8349E+01    -1.9849E+01
        -2.4088E+01    -1.7827E+01
        -2.4088E+01    -1.7827E+01
        -2.3163E+01    -1.9353E+01
    
        -2.6121E+01    -2.4740E+01
    
        -2.6092E+01    -2.5676E+01
        -2.1831E+01    -2.3654E+01
        -2.1831E+01    -2.3654E+01
        -2.1859E+01    -2.2718E+01
    
        -2.3163E+01    -1.9353E+01
    
        -2.4088E+01    -1.7827E+01
        -1.9826E+01    -1.5805E+01
        -1.9826E+01    -1.5805E+01
        -1.8901E+01    -1.7331E+01
    
        -2.1859E+01    -2.2718E+01
    
        -2.1831E+01    -2.3654E+01
        -1.7569E+01    -2.1632E+01
        -1.7569E+01    -2.1632E+01
        -1.7598E+01    -2.0696E+01
    
        -1.8901E+01    -1.7331E+01
    
        -1.9826E+01    -1.5805E+01
        -1.5565E+01    -1.3783E+01
        -1.5565E+01    -1.3783E+01
        -1.4640E+01    -1.5309E+01
    
        -1.7598E+01    -2.0696E+01
    
        -1.7569E+01    -2.1632E+01
        -1.3308E+01    -1.9610E+01
        -1.3308E+01    -1.9610E+01
        -1.3337E+01    -1.8674E+01
    
        -1.4640E+01    -1.5309E+01
    
        -1.5565E+01    -1.3783E+01
        -1.1303E+01    -1.1761E+01
        -1.1303E+01    -1.1761E+01
        -1.0378E+01    -1.3287E+01
    
        -1.3337E+01    -1.8674E+01
    
        -1.3308E+01    -1.9610E+01
        -9.0463E+00    -1.7588E+01
        -9.0463E+00    -1.7588E+01
        -9.0751E+00    -1.6652E+01
    
        -1.0378E+01    -1.3287E+01
    
        -1.1303E+01    -1.1761E+01
        -7.0419E+00    -9.7390E+00
        -7.0419E+00    -9.7390E+00
        -6.1167E+00    -1.1265E+01
    
        -9.0751E+00    -1.6652E+01
    
        -9.0463E+00    -1.7588E+01
        -4.7848E+00    -1.5566E+01
        -4.7848E+00    -1.5566E+01
        -4.8136E+00    -1.4630E+01
    
        -6.1167E+00    -1.1265E+01
    
        -7.0419E+00    -9.7390E+00
        -2.7804E+00    -7.7169E+00
        -2.7804E+00    -7.7169E+00
        -1.8552E+00    -9.2433E+00
    
        -4.8136E+00    -1.4630E+01
    
        -4.7848E+00    -1.5566E+01
        -5.2337E-01    -1.3544E+01
        -5.2337E-01    -1.3544E+01
        -5.5214E-01    -1.2608E+01
    
        -1.8552E+00    -9.2433E+00
    
        -2.7804E+00    -7.7169E+00
         1.4811E+00    -5.6949E+00
         1.4811E+00    -5.6949E+00
         2.4062E+00    -7.2212E+00
    
        -5.5214E-01    -1.2608E+01
    
        -5.2337E-01    -1.3544E+01
         3.7381E+00    -1.1522E+01
         3.7381E+00    -1.1522E+01
         3.7093E+00    -1.0586E+01
    
         2.4062E+00    -7.2212E+00
    
         1.4811E+00    -5.6949E+00
         5.7425E+00    -3.6728E+00
         5.7425E+00    -3.6728E+00
         6.6677E+00    -5.1992E+00
    
         3.7093E+00    -1.0586E+01
    
         3.7381E+00    -1.1522E+01
         7.9995E+00    -9.5000E+00
         7.9995E+00    -9.5000E+00
         7.9708E+00    -8.5635E+00
    
         6.6677E+00    -5.1992E+00
    
         5.7425E+00    -3.6728E+00
         1.0004E+01    -1.6508E+00
         1.0004E+01    -1.6508E+00
         1.0929E+01    -3.1771E+00
    
         7.9708E+00    -8.5635E+00
    
         7.9995E+00    -9.5000E+00
         1.2261E+01    -7.4779E+00
         1.2261E+01    -7.4779E+00
         1.2232E+01    -6.5414E+00
    
         1.0929E+01    -3.1771E+00
    
         1.0004E+01    -1.6508E+00
         1.4265E+01     3.7127E-01
         1.4265E+01     3.7127E-01
         1.5191E+01    -1.1551E+00
    
         1.2232E+01    -6.5414E+00
    
         1.2261E+01    -7.4779E+00
         1.6522E+01    -5.4559E+00
         1.6522E+01    -5.4559E+00
         1.6494E+01    -4.5194E+00
    
         1.5191E+01    -1.1551E+00
    
         1.4265E+01     3.7127E-01
         1.8527E+01     2.3933E+00
         1.8527E+01     2.3933E+00
         1.9452E+01     8.6697E-01
    
         1.6494E+01    -4.5194E+00
    
         1.6522E+01    -5.4559E+00
         2.0784E+01    -3.4339E+00
         2.0784E+01    -3.4339E+00
         2.0755E+01    -2.4973E+00
    
         1.9452E+01     8.6697E-01
    
         1.8527E+01     2.3933E+00
         2.2788E+01     4.4154E+00
         2.2788E+01     4.4154E+00
         2.3714E+01     2.8890E+00
    
         2.0755E+01    -2.4973E+00
    
         2.0784E+01    -3.4339E+00
         2.5045E+01    -1.4118E+00
         2.5045E+01    -1.4118E+00
         2.5017E+01    -4.7529E-01
    
         2.3714E+01     2.8890E+00
    
         2.2788E+01     4.4154E+00
         2.7050E+01     6.4374E+00
         2.7050E+01     6.4374E+00
         2.7975E+01     4.9111E+00
    
         2.5017E+01    -4.7529E-01
    
         2.5045E+01    -1.4118E+00
         2.9307E+01     6.1023E-01
         2.9307E+01     6.1023E-01
         2.9278E+01     1.5467E+00
    
         2.7975E+01     4.9111E+00
    
         2.7050E+01     6.4374E+00
         3.1311E+01     8.4594E+00
         3.1311E+01     8.4594E+00
         3.2236E+01     6.9331E+00
    
         2.9278E+01     1.5467E+00
    
         2.9307E+01     6.1023E-01
         3.3568E+01     2.6323E+00
         3.3568E+01     2.6323E+00
         3.3540E+01     3.5688E+00
    
         3.2236E+01     6.9331E+00
    
         3.1311E+01     8.4594E+00
         3.5573E+01     1.0481E+01
         3.5573E+01     1.0481E+01
         3.6498E+01     8.9552E+00
    
         3.3540E+01     3.5688E+00
    
         3.3568E+01     2.6323E+00
         3.7830E+01     4.6543E+00
         3.7830E+01     4.6543E+00
         3.7801E+01     5.5908E+00
    
         3.6498E+01     8.9552E+00
    
         3.5573E+01     1.0481E+01
         3.9834E+01     1.2504E+01
         3.9834E+01     1.2504E+01
         4.0759E+01     1.0977E+01
    
         3.7801E+01     5.5908E+00
    
         3.7830E+01     4.6543E+00
         4.2091E+01     6.6764E+00
         4.2091E+01     6.6764E+00
         4.2062E+01     7.6129E+00
    
        -4.4879E+01    -3.0448E+01
        -4.4879E+01    -3.0448E+01
        -4.1361E+01    -2.6506E+01
        -4.1361E+01    -2.6506E+01
        -4.0912E+01    -2.6993E+01
    
        -4.4879E+01    -3.0448E+01
        -4.4879E+01    -3.0448E+01
        -3.9874E+01    -3.0346E+01
        -3.9874E+01    -3.0346E+01
        -3.9624E+01    -3.0318E+01
    
        -4.0912E+01    -2.6993E+01
    
        -4.1361E+01    -2.6506E+01
        -3.7533E+01    -2.3364E+01
        -3.7533E+01    -2.3364E+01
        -3.6822E+01    -2.4135E+01
    
        -3.9874E+01    -3.0346E+01
    
        -3.9747E+01    -3.0321E+01
    
        -3.9625E+01    -3.0298E+01
    
        -3.4783E+01    -2.9401E+01
        -3.4783E+01    -2.9401E+01
    
        -3.6822E+01    -2.4135E+01
    
        -3.7533E+01    -2.3364E+01
        -3.3397E+01    -2.1018E+01
        -3.3397E+01    -2.1018E+01
        -3.2611E+01    -2.1871E+01
    
        -3.0354E+01    -2.7698E+01
    
        -3.2611E+01    -2.1871E+01
    
        -3.3397E+01    -2.1018E+01
        -2.9136E+01    -1.8996E+01
        -2.9136E+01    -1.8996E+01
        -2.8349E+01    -1.9849E+01
    
        -2.6092E+01    -2.5676E+01
    
        -2.8349E+01    -1.9849E+01
    
        -2.9136E+01    -1.8996E+01
        -2.4875E+01    -1.6974E+01
        -2.4875E+01    -1.6974E+01
        -2.4088E+01    -1.7827E+01
    
        -2.1831E+01    -2.3654E+01
    
        -2.4088E+01    -1.7827E+01
    
        -2.4875E+01    -1.6974E+01
        -2.0613E+01    -1.4952E+01
        -2.0613E+01    -1.4952E+01
        -1.9826E+01    -1.5805E+01
    
        -1.7569E+01    -2.1632E+01
    
        -1.9826E+01    -1.5805E+01
    
        -2.0613E+01    -1.4952E+01
        -1.6352E+01    -1.2929E+01
        -1.6352E+01    -1.2929E+01
        -1.5565E+01    -1.3783E+01
    
        -1.3308E+01    -1.9610E+01
    
        -1.5565E+01    -1.3783E+01
    
        -1.6352E+01    -1.2929E+01
        -1.2090E+01    -1.0907E+01
        -1.2090E+01    -1.0907E+01
        -1.1303E+01    -1.1761E+01
    
        -9.0463E+00    -1.7588E+01
    
        -1.1303E+01    -1.1761E+01
    
        -1.2090E+01    -1.0907E+01
        -7.8287E+00    -8.8854E+00
        -7.8287E+00    -8.8854E+00
        -7.0419E+00    -9.7390E+00
    
        -4.7848E+00    -1.5566E+01
    
        -7.0419E+00    -9.7390E+00
    
        -7.8287E+00    -8.8854E+00
        -3.5672E+00    -6.8633E+00
        -3.5672E+00    -6.8633E+00
        -2.7804E+00    -7.7169E+00
    
        -5.2337E-01    -1.3544E+01
    
        -2.7804E+00    -7.7169E+00
    
        -3.5672E+00    -6.8633E+00
         6.9421E-01    -4.8413E+00
         6.9421E-01    -4.8413E+00
         1.4811E+00    -5.6949E+00
    
         3.7381E+00    -1.1522E+01
         3.7381E+00    -1.1522E+01
    
         1.4811E+00    -5.6949E+00
    
         6.9421E-01    -4.8413E+00
         4.9557E+00    -2.8192E+00
         4.9557E+00    -2.8192E+00
         5.7425E+00    -3.6728E+00
    
         7.9995E+00    -9.5000E+00
         7.9995E+00    -9.5000E+00
    
         5.7425E+00    -3.6728E+00
    
         4.9557E+00    -2.8192E+00
         9.2171E+00    -7.9720E-01
         9.2171E+00    -7.9720E-01
         1.0004E+01    -1.6508E+00
    
         1.2261E+01    -7.4779E+00
         1.2261E+01    -7.4779E+00
    
         1.0004E+01    -1.6508E+00
    
         9.2171E+00    -7.9720E-01
         1.3479E+01     1.2248E+00
         1.3479E+01     1.2248E+00
         1.4265E+01     3.7127E-01
    
         1.6522E+01    -5.4559E+00
    
         1.4265E+01     3.7127E-01
    
         1.3479E+01     1.2248E+00
         1.7740E+01     3.2469E+00
         1.7740E+01     3.2469E+00
         1.8527E+01     2.3933E+00
    
         2.0784E+01    -3.4339E+00
    
         1.8527E+01     2.3933E+00
    
         1.7740E+01     3.2469E+00
         2.2002E+01     5.2689E+00
         2.2002E+01     5.2689E+00
         2.2788E+01     4.4154E+00
    
         2.5045E+01    -1.4118E+00
    
         2.2788E+01     4.4154E+00
    
         2.2002E+01     5.2689E+00
         2.6263E+01     7.2910E+00
         2.6263E+01     7.2910E+00
         2.7050E+01     6.4374E+00
    
         2.9307E+01     6.1023E-01
    
         2.7050E+01     6.4374E+00
    
         2.6263E+01     7.2910E+00
         3.0524E+01     9.3130E+00
         3.0524E+01     9.3130E+00
         3.1311E+01     8.4594E+00
    
         3.3568E+01     2.6323E+00
    
         3.1311E+01     8.4594E+00
    
         3.0524E+01     9.3130E+00
         3.4786E+01     1.1335E+01
         3.4786E+01     1.1335E+01
         3.5573E+01     1.0481E+01
    
         3.7830E+01     4.6543E+00
    
         3.5573E+01     1.0481E+01
    
         3.4786E+01     1.1335E+01
         3.9047E+01     1.3357E+01
         3.9047E+01     1.3357E+01
         3.9834E+01     1.2504E+01
    
         4.2091E+01     6.6764E+00
         4.2091E+01     6.6764E+00
    
        -4.4879E+01    -3.0448E+01
        -4.4879E+01    -3.0448E+01
        -4.1611E+01    -2.6534E+01
        -4.1611E+01    -2.6534E+01
        -4.1361E+01    -2.6506E+01
    
        -4.4879E+01    -3.0448E+01
    
        -4.0313E+01    -2.9869E+01
    
        -3.9893E+01    -3.0325E+01
    
        -3.9874E+01    -3.0346E+01
    
        -4.1361E+01    -2.6506E+01
    
        -4.1611E+01    -2.6534E+01
        -3.7929E+01    -2.3407E+01
        -3.7929E+01    -2.3407E+01
        -3.7533E+01    -2.3364E+01
    
        -3.7533E+01    -2.3364E+01
    
        -3.7929E+01    -2.3407E+01
        -3.3835E+01    -2.1066E+01
        -3.3835E+01    -2.1066E+01
        -3.3397E+01    -2.1018E+01
    
        -3.3397E+01    -2.1018E+01
    
        -3.3835E+01    -2.1066E+01
        -2.9574E+01    -1.9043E+01
        -2.9574E+01    -1.9043E+01
        -2.9136E+01    -1.8996E+01
    
        -2.9136E+01    -1.8996E+01
    
        -2.9574E+01    -1.9043E+01
        -2.5312E+01    -1.7021E+01
        -2.5312E+01    -1.7021E+01
        -2.4875E+01    -1.6974E+01
    
        -2.4875E+01    -1.6974E+01
    
        -2.5312E+01    -1.7021E+01
        -2.1051E+01    -1.4999E+01
        -2.1051E+01    -1.4999E+01
        -2.0613E+01    -1.4952E+01
    
        -2.0613E+01    -1.4952E+01
    
        -2.1051E+01    -1.4999E+01
        -1.6789E+01    -1.2977E+01
        -1.6789E+01    -1.2977E+01
        -1.6352E+01    -1.2929E+01
    
        -1.6352E+01    -1.2929E+01
    
        -1.6789E+01    -1.2977E+01
        -1.2528E+01    -1.0955E+01
        -1.2528E+01    -1.0955E+01
        -1.2090E+01    -1.0907E+01
    
        -1.2090E+01    -1.0907E+01
    
        -1.2528E+01    -1.0955E+01
        -8.2664E+00    -8.9333E+00
        -8.2664E+00    -8.9333E+00
        -7.8287E+00    -8.8854E+00
    
        -8.2664E+00    -8.9333E+00
        -4.0049E+00    -6.9112E+00
    
        -4.0049E+00    -6.9112E+00
        -3.9480E+00    -6.9050E+00
    
        -3.5672E+00    -6.8633E+00
    
        -4.0049E+00    -6.9112E+00
        -3.9244E+00    -6.8730E+00
    
         3.8945E-01    -4.8746E+00
    
         6.9421E-01    -4.8413E+00
    
         4.7333E+00    -2.8436E+00
    
         4.9557E+00    -2.8192E+00
    
         9.0844E+00    -8.1173E-01
    
         9.2171E+00    -7.9720E-01
    
         1.3444E+01     1.2210E+00
    
         1.3479E+01     1.2248E+00
    
         1.7740E+01     3.2469E+00
         1.7740E+01     3.2469E+00
    
         2.2002E+01     5.2689E+00
    
         2.2246E+01     5.5446E+00
         2.5825E+01     7.2431E+00
    
         2.5825E+01     7.2431E+00
         2.6263E+01     7.2910E+00
    
         2.6263E+01     7.2910E+00
    
         2.5825E+01     7.2431E+00
         3.0087E+01     9.2651E+00
         3.0087E+01     9.2651E+00
         3.0524E+01     9.3130E+00
    
         3.0524E+01     9.3130E+00
    
         3.0087E+01     9.2651E+00
         3.4348E+01     1.1287E+01
         3.4348E+01     1.1287E+01
         3.4786E+01     1.1335E+01
    
         3.4786E+01     1.1335E+01
    
         3.4348E+01     1.1287E+01
         3.8610E+01     1.3309E+01
         3.8610E+01     1.3309E+01
         3.9047E+01     1.3357E+01
    
        -4.4879E+01    -3.0448E+01
    
        -4.1603E+01    -2.6778E+01
    
        -4.1611E+01    -2.6534E+01
    
        -4.4879E+01    -3.0448E+01
    
        -3.7920E+01    -2.3682E+01
    
        -3.7929E+01    -2.3407E+01
    
        -3.3829E+01    -2.1263E+01
    
        -3.3835E+01    -2.1066E+01
    
        -2.9569E+01    -1.9201E+01
    
        -2.9574E+01    -1.9043E+01
    
        -2.5307E+01    -1.7179E+01
    
        -2.5312E+01    -1.7021E+01
    
        -2.1046E+01    -1.5157E+01
    
        -2.1051E+01    -1.4999E+01
    
        -1.6784E+01    -1.3135E+01
    
        -1.6789E+01    -1.2977E+01
    
        -1.2523E+01    -1.1113E+01
    
        -1.2528E+01    -1.0955E+01
    
        -8.2615E+00    -9.0908E+00
    
        -8.2664E+00    -8.9333E+00
    
        -4.0049E+00    -6.9112E+00
    
         2.5830E+01     7.0857E+00
    
         2.5825E+01     7.2431E+00
    
         3.0092E+01     9.1075E+00
    
         3.0087E+01     9.2651E+00
    
         3.4353E+01     1.1130E+01
    
         3.4348E+01     1.1287E+01
    
         3.8615E+01     1.3152E+01
    
         3.8610E+01     1.3309E+01
    
        -4.4879E+01    -3.0448E+01
    
        -4.1059E+00    -7.1189E+00
        -4.1059E+00    -7.1189E+00
        -9.0190E-01    -2.7776E+00
        -9.0190E-01    -2.7776E+00
         3.0601E+00    -8.9766E-01
         3.0601E+00    -8.9766E-01
         2.7979E-01    -5.0379E+00
         2.7979E-01    -5.0379E+00
        -4.1059E+00    -7.1189E+00
    
        -1.2136E+00    -1.3872E+01
         3.5504E+00    -1.4272E+01
    
         3.5504E+00    -1.4272E+01
         7.5124E+00    -1.2392E+01
    
         7.5124E+00    -1.2392E+01
         3.1480E+00    -1.1802E+01
    
         2.7979E-01    -5.0379E+00
    
         3.0601E+00    -8.9766E-01
         7.0221E+00     9.8230E-01
         7.0221E+00     9.8230E-01
         4.6655E+00    -2.9570E+00
         4.6655E+00    -2.9570E+00
         2.7979E-01    -5.0379E+00
    
         7.5124E+00    -1.2392E+01
         1.1474E+01    -1.0512E+01
    
         1.1474E+01    -1.0512E+01
         7.5097E+00    -9.7324E+00
    
         3.7333E+00    -1.1365E+01
    
         4.6655E+00    -2.9570E+00
    
         7.0221E+00     9.8230E-01
         1.0984E+01     2.8623E+00
         1.0984E+01     2.8623E+00
         9.0511E+00    -8.7597E-01
         9.0511E+00    -8.7597E-01
         4.6655E+00    -2.9570E+00
    
         1.1474E+01    -1.0512E+01
         1.5436E+01    -8.6325E+00
    
         1.5436E+01    -8.6325E+00
         1.1871E+01    -7.6628E+00
    
         7.9947E+00    -9.3425E+00
    
         9.0511E+00    -8.7597E-01
    
         1.0984E+01     2.8623E+00
         1.4946E+01     4.7422E+00
         1.4946E+01     4.7422E+00
         1.3437E+01     1.2050E+00
         1.3437E+01     1.2050E+00
         9.0511E+00    -8.7597E-01
    
         1.5436E+01    -8.6325E+00
         1.9398E+01    -6.7525E+00
    
         1.9398E+01    -6.7525E+00
         1.6233E+01    -5.5932E+00
    
         1.2256E+01    -7.3204E+00
    
         1.3437E+01     1.2050E+00
    
         1.4946E+01     4.7422E+00
         1.8908E+01     6.6222E+00
         1.8908E+01     6.6222E+00
         1.7822E+01     3.2860E+00
         1.7822E+01     3.2860E+00
         1.3437E+01     1.2050E+00
    
         1.9398E+01    -6.7525E+00
         2.3360E+01    -4.8726E+00
    
         2.3360E+01    -4.8726E+00
         2.0595E+01    -3.5236E+00
    
         1.7822E+01     3.2860E+00
    
         1.8908E+01     6.6222E+00
         2.2870E+01     8.5021E+00
         2.2870E+01     8.5021E+00
         2.2208E+01     5.3670E+00
         2.2208E+01     5.3670E+00
         1.7822E+01     3.2860E+00
    
         2.3360E+01    -4.8726E+00
         2.7322E+01    -2.9926E+00
    
         2.7322E+01    -2.9926E+00
         2.5049E+01    -1.5139E+00
         2.4956E+01    -1.4540E+00
    
         2.0779E+01    -3.2764E+00
    
        -9.0190E-01    -2.7776E+00
        -9.0190E-01    -2.7776E+00
         2.3021E+00     1.5637E+00
         2.3021E+00     1.5637E+00
         5.8404E+00     3.2426E+00
         5.8404E+00     3.2426E+00
         3.0601E+00    -8.9766E-01
    
         3.5504E+00    -1.4272E+01
         3.5504E+00    -1.4272E+01
         8.6004E+00    -1.4697E+01
         8.6004E+00    -1.4697E+01
         1.2139E+01    -1.3018E+01
         1.2139E+01    -1.3018E+01
         7.5124E+00    -1.2392E+01
    
         3.0601E+00    -8.9766E-01
    
         5.8404E+00     3.2426E+00
         9.3788E+00     4.9216E+00
         9.3788E+00     4.9216E+00
         7.0221E+00     9.8230E-01
    
         7.5124E+00    -1.2392E+01
    
         1.2139E+01    -1.3018E+01
         1.5677E+01    -1.1339E+01
         1.5677E+01    -1.1339E+01
         1.1474E+01    -1.0512E+01
    
         7.0221E+00     9.8230E-01
    
         9.3788E+00     4.9216E+00
         1.2917E+01     6.6005E+00
         1.2917E+01     6.6005E+00
         1.0984E+01     2.8623E+00
    
         1.1474E+01    -1.0512E+01
    
         1.5677E+01    -1.1339E+01
         1.9215E+01    -9.6604E+00
         1.9215E+01    -9.6604E+00
         1.5436E+01    -8.6325E+00
    
         1.0984E+01     2.8623E+00
    
         1.2917E+01     6.6005E+00
         1.6455E+01     8.2794E+00
         1.6455E+01     8.2794E+00
         1.4946E+01     4.7422E+00
    
         1.5436E+01    -8.6325E+00
    
         1.9215E+01    -9.6604E+00
         2.2754E+01    -7.9814E+00
         2.2754E+01    -7.9814E+00
         1.9398E+01    -6.7525E+00
    
         1.4946E+01     4.7422E+00
    
         1.6455E+01     8.2794E+00
         1.9994E+01     9.9583E+00
         1.9994E+01     9.9583E+00
         1.8908E+01     6.6222E+00
    
         1.9398E+01    -6.7525E+00
    
         2.2754E+01    -7.9814E+00
         2.6292E+01    -6.3025E+00
         2.6292E+01    -6.3025E+00
         2.3360E+01    -4.8726E+00
    
         1.8908E+01     6.6222E+00
    
         1.9994E+01     9.9583E+00
         2.3532E+01     1.1637E+01
         2.3532E+01     1.1637E+01
         2.2870E+01     8.5021E+00
    
         2.3360E+01    -4.8726E+00
    
         2.6292E+01    -6.3025E+00
         2.9830E+01    -4.6236E+00
         2.9830E+01    -4.6236E+00
         2.7322E+01    -2.9926E+00
    
         2.3021E+00     1.5637E+00
         2.3021E+00     1.5637E+00
         5.5061E+00     5.9050E+00
         5.5061E+00     5.9050E+00
         8.6208E+00     7.3829E+00
         8.6208E+00     7.3829E+00
         5.8404E+00     3.2426E+00
    
         8.6004E+00    -1.4697E+01
         8.6004E+00    -1.4697E+01
         1.3650E+01    -1.5122E+01
         1.3650E+01    -1.5122E+01
         1.6765E+01    -1.3644E+01
         1.6765E+01    -1.3644E+01
         1.2139E+01    -1.3018E+01
    
         5.8404E+00     3.2426E+00
    
         8.6208E+00     7.3829E+00
         1.1735E+01     8.8608E+00
         1.1735E+01     8.8608E+00
         9.3788E+00     4.9216E+00
    
         1.2139E+01    -1.3018E+01
    
         1.6765E+01    -1.3644E+01
         1.9880E+01    -1.2166E+01
         1.9880E+01    -1.2166E+01
         1.5677E+01    -1.1339E+01
    
         9.3788E+00     4.9216E+00
    
         1.1735E+01     8.8608E+00
         1.4850E+01     1.0339E+01
         1.4850E+01     1.0339E+01
         1.2917E+01     6.6005E+00
    
         1.5677E+01    -1.1339E+01
    
         1.9880E+01    -1.2166E+01
         2.2994E+01    -1.0688E+01
         2.2994E+01    -1.0688E+01
         1.9215E+01    -9.6604E+00
    
         1.2917E+01     6.6005E+00
    
         1.4850E+01     1.0339E+01
         1.7965E+01     1.1817E+01
         1.7965E+01     1.1817E+01
         1.6455E+01     8.2794E+00
    
         1.9215E+01    -9.6604E+00
    
         2.2994E+01    -1.0688E+01
         2.6109E+01    -9.2103E+00
         2.6109E+01    -9.2103E+00
         2.2754E+01    -7.9814E+00
    
         1.6455E+01     8.2794E+00
    
         1.7965E+01     1.1817E+01
         2.1079E+01     1.3295E+01
         2.1079E+01     1.3295E+01
         1.9994E+01     9.9583E+00
    
         2.2754E+01    -7.9814E+00
    
         2.6109E+01    -9.2103E+00
         2.9224E+01    -7.7324E+00
         2.9224E+01    -7.7324E+00
         2.6292E+01    -6.3025E+00
    
         1.9994E+01     9.9583E+00
    
         2.1079E+01     1.3295E+01
         2.4194E+01     1.4772E+01
         2.4194E+01     1.4772E+01
         2.3532E+01     1.1637E+01
    
         2.6292E+01    -6.3025E+00
    
         2.9224E+01    -7.7324E+00
         3.2339E+01    -6.2545E+00
         3.2339E+01    -6.2545E+00
         2.9830E+01    -4.6236E+00
    
         5.5061E+00     5.9050E+00
         5.5061E+00     5.9050E+00
         8.7101E+00     1.0246E+01
         8.7101E+00     1.0246E+01
         1.1401E+01     1.1523E+01
         1.1401E+01     1.1523E+01
         8.6208E+00     7.3829E+00
    
         1.3650E+01    -1.5122E+01
         1.3650E+01    -1.5122E+01
         1.8701E+01    -1.5547E+01
         1.8701E+01    -1.5547E+01
         2.1392E+01    -1.4270E+01
         2.1392E+01    -1.4270E+01
         1.6765E+01    -1.3644E+01
    
         8.6208E+00     7.3829E+00
    
         1.1401E+01     1.1523E+01
         1.4092E+01     1.2800E+01
         1.4092E+01     1.2800E+01
         1.1735E+01     8.8608E+00
    
         1.6765E+01    -1.3644E+01
    
         2.1392E+01    -1.4270E+01
         2.4083E+01    -1.2993E+01
         2.4083E+01    -1.2993E+01
         1.9880E+01    -1.2166E+01
    
         1.1735E+01     8.8608E+00
    
         1.4092E+01     1.2800E+01
         1.6783E+01     1.4077E+01
         1.6783E+01     1.4077E+01
         1.4850E+01     1.0339E+01
    
         1.9880E+01    -1.2166E+01
    
         2.4083E+01    -1.2993E+01
         2.6774E+01    -1.1716E+01
         2.6774E+01    -1.1716E+01
         2.2994E+01    -1.0688E+01
    
         1.4850E+01     1.0339E+01
    
         1.6783E+01     1.4077E+01
         1.9474E+01     1.5354E+01
         1.9474E+01     1.5354E+01
         1.7965E+01     1.1817E+01
    
         2.2994E+01    -1.0688E+01
    
         2.6774E+01    -1.1716E+01
         2.9465E+01    -1.0439E+01
         2.9465E+01    -1.0439E+01
         2.6109E+01    -9.2103E+00
    
         1.7965E+01     1.1817E+01
    
         1.9474E+01     1.5354E+01
         2.2165E+01     1.6631E+01
         2.2165E+01     1.6631E+01
         2.1079E+01     1.3295E+01
    
         2.6109E+01    -9.2103E+00
    
         2.9465E+01    -1.0439E+01
         3.2156E+01    -9.1624E+00
         3.2156E+01    -9.1624E+00
         2.9224E+01    -7.7324E+00
    
         2.1079E+01     1.3295E+01
    
         2.2165E+01     1.6631E+01
         2.4856E+01     1.7908E+01
         2.4856E+01     1.7908E+01
         2.4194E+01     1.4772E+01
    
         2.9224E+01    -7.7324E+00
    
         3.2156E+01    -9.1624E+00
         3.4847E+01    -7.8855E+00
         3.4847E+01    -7.8855E+00
         3.2339E+01    -6.2545E+00
    
         8.7101E+00     1.0246E+01
         8.7101E+00     1.0246E+01
         1.1914E+01     1.4588E+01
         1.1914E+01     1.4588E+01
         1.4181E+01     1.5663E+01
         1.4181E+01     1.5663E+01
         1.1401E+01     1.1523E+01
    
         1.8701E+01    -1.5547E+01
         1.8701E+01    -1.5547E+01
         2.3751E+01    -1.5972E+01
         2.3751E+01    -1.5972E+01
         2.6018E+01    -1.4896E+01
         2.6018E+01    -1.4896E+01
         2.1392E+01    -1.4270E+01
    
         1.1401E+01     1.1523E+01
    
         1.4181E+01     1.5663E+01
         1.6449E+01     1.6739E+01
         1.6449E+01     1.6739E+01
         1.4092E+01     1.2800E+01
    
         2.1392E+01    -1.4270E+01
    
         2.6018E+01    -1.4896E+01
         2.8285E+01    -1.3820E+01
         2.8285E+01    -1.3820E+01
         2.4083E+01    -1.2993E+01
    
         1.4092E+01     1.2800E+01
    
         1.6449E+01     1.6739E+01
         1.8716E+01     1.7815E+01
         1.8716E+01     1.7815E+01
         1.6783E+01     1.4077E+01
    
         2.4083E+01    -1.2993E+01
    
         2.8285E+01    -1.3820E+01
         3.0553E+01    -1.2744E+01
         3.0553E+01    -1.2744E+01
         2.6774E+01    -1.1716E+01
    
         1.6783E+01     1.4077E+01
    
         1.8716E+01     1.7815E+01
         2.0983E+01     1.8891E+01
         2.0983E+01     1.8891E+01
         1.9474E+01     1.5354E+01
    
         2.6774E+01    -1.1716E+01
    
         3.0553E+01    -1.2744E+01
         3.2820E+01    -1.1668E+01
         3.2820E+01    -1.1668E+01
         2.9465E+01    -1.0439E+01
    
         1.9474E+01     1.5354E+01
    
         2.0983E+01     1.8891E+01
         2.3251E+01     1.9967E+01
         2.3251E+01     1.9967E+01
         2.2165E+01     1.6631E+01
    
         2.9465E+01    -1.0439E+01
    
         3.2820E+01    -1.1668E+01
         3.5087E+01    -1.0592E+01
         3.5087E+01    -1.0592E+01
         3.2156E+01    -9.1624E+00
    
         2.2165E+01     1.6631E+01
    
         2.3251E+01     1.9967E+01
         2.5518E+01     2.1043E+01
         2.5518E+01     2.1043E+01
         2.4856E+01     1.7908E+01
    
         3.2156E+01    -9.1624E+00
    
         3.5087E+01    -1.0592E+01
         3.7355E+01    -9.5165E+00
         3.7355E+01    -9.5165E+00
         3.4847E+01    -7.8855E+00
    
         1.1914E+01     1.4588E+01
         1.1914E+01     1.4588E+01
         1.5118E+01     1.8929E+01
         1.5118E+01     1.8929E+01
         1.6962E+01     1.9804E+01
         1.6962E+01     1.9804E+01
         1.4181E+01     1.5663E+01
    
         2.3751E+01    -1.5972E+01
         2.3751E+01    -1.5972E+01
         2.8801E+01    -1.6396E+01
         2.8801E+01    -1.6396E+01
         3.0644E+01    -1.5522E+01
         3.0644E+01    -1.5522E+01
         2.6018E+01    -1.4896E+01
    
         1.4181E+01     1.5663E+01
    
         1.6962E+01     1.9804E+01
         1.8805E+01     2.0679E+01
         1.8805E+01     2.0679E+01
         1.6449E+01     1.6739E+01
    
         2.6018E+01    -1.4896E+01
    
         3.0644E+01    -1.5522E+01
         3.2488E+01    -1.4647E+01
         3.2488E+01    -1.4647E+01
         2.8285E+01    -1.3820E+01
    
         1.6449E+01     1.6739E+01
    
         1.8805E+01     2.0679E+01
         2.0649E+01     2.1553E+01
         2.0649E+01     2.1553E+01
         1.8716E+01     1.7815E+01
    
         2.8285E+01    -1.3820E+01
    
         3.2488E+01    -1.4647E+01
         3.4332E+01    -1.3772E+01
         3.4332E+01    -1.3772E+01
         3.0553E+01    -1.2744E+01
    
         1.8716E+01     1.7815E+01
    
         2.0649E+01     2.1553E+01
         2.2493E+01     2.2428E+01
         2.2493E+01     2.2428E+01
         2.0983E+01     1.8891E+01
    
         3.0553E+01    -1.2744E+01
    
         3.4332E+01    -1.3772E+01
         3.6175E+01    -1.2897E+01
         3.6175E+01    -1.2897E+01
         3.2820E+01    -1.1668E+01
    
         2.0983E+01     1.8891E+01
    
         2.2493E+01     2.2428E+01
         2.4336E+01     2.3303E+01
         2.4336E+01     2.3303E+01
         2.3251E+01     1.9967E+01
    
         3.2820E+01    -1.1668E+01
    
         3.6175E+01    -1.2897E+01
         3.8019E+01    -1.2022E+01
         3.8019E+01    -1.2022E+01
         3.5087E+01    -1.0592E+01
    
         2.3251E+01     1.9967E+01
    
         2.4336E+01     2.3303E+01
         2.6180E+01     2.4178E+01
         2.6180E+01     2.4178E+01
         2.5518E+01     2.1043E+01
    
         3.5087E+01    -1.0592E+01
    
         3.8019E+01    -1.2022E+01
         3.9863E+01    -1.1147E+01
         3.9863E+01    -1.1147E+01
         3.7355E+01    -9.5165E+00
    
         1.5118E+01     1.8929E+01
         1.5118E+01     1.8929E+01
         1.8322E+01     2.3270E+01
         1.8322E+01     2.3270E+01
         1.9742E+01     2.3944E+01
         1.9742E+01     2.3944E+01
         1.6962E+01     1.9804E+01
    
         2.8801E+01    -1.6396E+01
         2.8801E+01    -1.6396E+01
         3.3851E+01    -1.6821E+01
         3.3851E+01    -1.6821E+01
         3.5271E+01    -1.6147E+01
         3.5271E+01    -1.6147E+01
         3.0644E+01    -1.5522E+01
    
         1.6962E+01     1.9804E+01
    
         1.9742E+01     2.3944E+01
         2.1162E+01     2.4618E+01
         2.1162E+01     2.4618E+01
         1.8805E+01     2.0679E+01
    
         3.0644E+01    -1.5522E+01
    
         3.5271E+01    -1.6147E+01
         3.6691E+01    -1.5474E+01
         3.6691E+01    -1.5474E+01
         3.2488E+01    -1.4647E+01
    
         1.8805E+01     2.0679E+01
    
         2.1162E+01     2.4618E+01
         2.2582E+01     2.5292E+01
         2.2582E+01     2.5292E+01
         2.0649E+01     2.1553E+01
    
         3.2488E+01    -1.4647E+01
    
         3.6691E+01    -1.5474E+01
         3.8111E+01    -1.4800E+01
         3.8111E+01    -1.4800E+01
         3.4332E+01    -1.3772E+01
    
         2.0649E+01     2.1553E+01
    
         2.2582E+01     2.5292E+01
         2.4002E+01     2.5965E+01
         2.4002E+01     2.5965E+01
         2.2493E+01     2.2428E+01
    
         3.4332E+01    -1.3772E+01
    
         3.8111E+01    -1.4800E+01
         3.9531E+01    -1.4126E+01
         3.9531E+01    -1.4126E+01
         3.6175E+01    -1.2897E+01
    
         2.2493E+01     2.2428E+01
    
         2.4002E+01     2.5965E+01
         2.5422E+01     2.6639E+01
         2.5422E+01     2.6639E+01
         2.4336E+01     2.3303E+01
    
         3.6175E+01    -1.2897E+01
    
         3.9531E+01    -1.4126E+01
         4.0951E+01    -1.3452E+01
         4.0951E+01    -1.3452E+01
         3.8019E+01    -1.2022E+01
    
         2.4336E+01     2.3303E+01
    
         2.5422E+01     2.6639E+01
         2.6842E+01     2.7313E+01
         2.6842E+01     2.7313E+01
         2.6180E+01     2.4178E+01
    
         3.8019E+01    -1.2022E+01
    
         4.0951E+01    -1.3452E+01
         4.2371E+01    -1.2778E+01
         4.2371E+01    -1.2778E+01
         3.9863E+01    -1.1147E+01
    
         1.8322E+01     2.3270E+01
         1.8322E+01     2.3270E+01
         2.1526E+01     2.7612E+01
         2.1526E+01     2.7612E+01
         2.2522E+01     2.8084E+01
         2.2522E+01     2.8084E+01
         1.9742E+01     2.3944E+01
    
         3.3851E+01    -1.6821E+01
         3.3851E+01    -1.6821E+01
         3.8901E+01    -1.7246E+01
         3.8901E+01    -1.7246E+01
         3.9897E+01    -1.6773E+01
         3.9897E+01    -1.6773E+01
         3.5271E+01    -1.6147E+01
    
         1.9742E+01     2.3944E+01
    
         2.2522E+01     2.8084E+01
         2.3519E+01     2.8557E+01
         2.3519E+01     2.8557E+01
         2.1162E+01     2.4618E+01
    
         3.5271E+01    -1.6147E+01
    
         3.9897E+01    -1.6773E+01
         4.0893E+01    -1.6300E+01
         4.0893E+01    -1.6300E+01
         3.6691E+01    -1.5474E+01
    
         2.1162E+01     2.4618E+01
    
         2.3519E+01     2.8557E+01
         2.4515E+01     2.9030E+01
         2.4515E+01     2.9030E+01
         2.2582E+01     2.5292E+01
    
         3.6691E+01    -1.5474E+01
    
         4.0893E+01    -1.6300E+01
         4.1890E+01    -1.5828E+01
         4.1890E+01    -1.5828E+01
         3.8111E+01    -1.4800E+01
    
         2.2582E+01     2.5292E+01
    
         2.4515E+01     2.9030E+01
         2.5511E+01     2.9503E+01
         2.5511E+01     2.9503E+01
         2.4002E+01     2.5965E+01
    
         3.8111E+01    -1.4800E+01
    
         4.1890E+01    -1.5828E+01
         4.2886E+01    -1.5355E+01
         4.2886E+01    -1.5355E+01
         3.9531E+01    -1.4126E+01
    
         2.4002E+01     2.5965E+01
    
         2.5511E+01     2.9503E+01
         2.6508E+01     2.9975E+01
         2.6508E+01     2.9975E+01
         2.5422E+01     2.6639E+01
    
         3.9531E+01    -1.4126E+01
    
         4.2886E+01    -1.5355E+01
         4.3882E+01    -1.4882E+01
         4.3882E+01    -1.4882E+01
         4.0951E+01    -1.3452E+01
    
         2.5422E+01     2.6639E+01
    
         2.6508E+01     2.9975E+01
         2.7504E+01     3.0448E+01
         2.7504E+01     3.0448E+01
         2.6842E+01     2.7313E+01
    
         4.0951E+01    -1.3452E+01
    
         4.3882E+01    -1.4882E+01
         4.4879E+01    -1.4409E+01
         4.4879E+01    -1.4409E+01
         4.2371E+01    -1.2778E+01
    
         4.0951E+01    -1.3452E+01
    
         4.3882E+01    -1.4882E+01
         4.4879E+01    -1.4409E+01
         4.4879E+01    -1.4409E+01
         4.2371E+01    -1.2778E+01
    Last edited by Daniel Raymer; 7 May 2008, 07:23 PM. Reason: more descriptive title - nobody is helping !!

  • #2
    Still no Joy

    I still haven't figured this one out. I've made a lot of improvements to the code, including adding a Contools pulldown menu and using the GFX line draw routine instead of the PB/CC version, but the basic problem is still there. Sometimes it just doesn't draw some of the lines.

    Weird.

    Comment


    • #3
      Daniel,

      I ran it a few times and multiple flips within each run and it looked like
      it had the same lines each time. Or at least I couldn't see anything missing.
      Also ran it with the debugger and a trace file and nothing showed up as
      an error. Haven't tried it with an "on error goto" to catch an error # yet
      as I'm having a little trouble figuring out just where it's supposed to end
      normally. It would have helped to have the program in between code &
      /code brackets. Maybe you could post your revised code that way.

      I'm running on Windows 2000 if it makes any difference.

      Comment


      • #4
        Missing lines

        Daniel,

        Just add SLEEP 50 after GRAPHIC ATTACH and it should solve your problem.
        There seem to be a timing problem with the graphic print and the sleep delay did it for me.
        Old QB45 Programmer

        Comment


        • #5
          When posting source code, especially as long as yours, please put the code in code tags (without the space after the leading "[")

          [ code]
          <Your source code here>
          [ /code]

          Example:
          Code:
          Function PbMain()
          
             ' Proper indented source code
             Local i As Long, s As String
          
          End Function
          This will preserve your source code formating and helps others to easier read your code.

          Comment


          • #6
            Note that you can edit your own posts to insert those code tags... ie. no need to re-post in a new message.
            Michael Mattias
            Tal Systems (retired)
            Port Washington WI USA
            [email protected]
            http://www.talsystems.com

            Comment


            • #7
              cannot edit - sorry

              The EDIT button is gone from my first post - sorry. I missed the meeting where the [code] thingy was explained. I'll use it now.

              Comment


              • #8
                IIRC, you can only 'edit' within 'x' days of post. (X=15 ??)

                However, if you send a note to [email protected] and ask nicely if someone with Super-User board privileges would insert the code tags for you, I'll bet they will.

                MCM
                Michael Mattias
                Tal Systems (retired)
                Port Washington WI USA
                [email protected]
                http://www.talsystems.com

                Comment


                • #9
                  Still no joy

                  Thanks for the suggestions.

                  Adding Sleep seems to help but the problem still occurs. Maybe I have a memory or CPU hardware problem? Maybe I have evil gremlins under my desk?

                  Such suspicions are the last resort of the incompetent.

                  Comment


                  • #10
                    Just curious but are you using the latest version of the compiler?
                    Or maybe it's something to do with your computer hardware or other
                    software.

                    Have you tried running ( and maybe even compiling ) on a totally different
                    computer & OS ?

                    Comment


                    • #11
                      I copied to PBCC 4.04.0042 and ran it as is and did not see any missing lines after several instances and samplings. Seems like there is nothing wrong with it. Running Vista Home Premium.
                      I ran it from the IDE and from the EXE. Seems to work like a charm.

                      Rod
                      Rod
                      I want not 'not', not Knot, not Knott, not Nott, not knot, not naught, not nought, but aught.

                      Comment


                      • #12
                        Running WinME with a disk that needs replacing, cant run scandisk or defrag.

                        That said, the program seems to work fine here after several flip options.
                        Client Writeup for the CPA

                        buffs.proboards2.com

                        Links Page

                        Comment


                        • #13
                          Hi Dan,
                          I hope that you don't mind, but I did a slight rewrite of your code.
                          Truth to tell, I had to do this in order to understand it properly.

                          Code:
                          #COMPILE EXE
                          #DIM ALL
                          #INCLUDE "win32api.inc"
                          
                          FUNCTION PBMAIN () AS LONG
                          LOCAL filename AS STRING
                          LOCAL filehandle, norecs, gwin, penup, firstplot AS LONG
                          LOCAL databuffer() AS STRING
                          LOCAL x,y AS SINGLE
                          
                          filename = CURDIR$+"\hlp.plt"
                          filehandle = FREEFILE
                          OPEN filename FOR INPUT AS #filehandle
                          FILESCAN filehandle, RECORDS TO norecs
                          REDIM databuffer(1 TO norecs)
                          LINE INPUT #filehandle, databuffer() TO norecs
                          CLOSE
                          
                          GRAPHIC WINDOW "DANPLOT",0,0,800,800 TO gwin
                          GRAPHIC ATTACH gwin,0,REDRAW
                          GRAPHIC SCALE (-50,50)-(50,-50)
                          GRAPHIC COLOR %BLACK, %WHITE
                          GRAPHIC CLEAR
                          
                          
                          firstplot = %true
                          FOR norecs = 1 TO UBOUND(databuffer)
                              penup = %true
                              IF RTRIM$(databuffer(norecs)) <> "" THEN
                                 penup = %false
                                 x = VAL(LEFT$(databuffer(norecs),15))
                                 y = VAL(MID$(databuffer(norecs),16))
                          
                                 IF ISTRUE firstplot THEN
                                    GRAPHIC SET POS (x,y)
                                    firstplot = %false
                                 END IF
                          
                              END IF
                          
                              IF ISTRUE penup THEN
                                 GRAPHIC SET POS (x,y)
                              ELSE
                                 GRAPHIC LINE -(x,y)
                              END IF
                          NEXT norecs
                          
                          GRAPHIC REDRAW
                          
                          WHILE iswindow(gwin):SLEEP 100:WEND
                          
                          END FUNCTION
                          It isn't as fancy as your program, but I hope that it will help.
                          Best Regards
                          Gary Barnes
                          The Control Key

                          If you are not part of the solution
                          then you are either a gas, solid, plasma or some other form of matter.

                          Comment


                          • #14
                            Thanks, Gary!

                            Just what I've been looking for.

                            Regards,
                            Bob

                            Comment


                            • #15
                              Hi,

                              Please help me how to define Data Type for Num to be used from both 4 digits to a 12 digits long ?

                              Thank you for your help

                              Can Le
                              Last edited by Can Le; 20 Jul 2008, 10:17 AM. Reason: move
                              http://www.lecan.net

                              Comment


                              • #16
                                Data Type Integer
                                Size 16 bits (2 bytes), signed
                                Decimal Range -32,768 to 32,767
                                Binary Range -2^15 to 2^15-1

                                Data Type Long-integer
                                Size 32 bits (4 bytes), signed
                                Decimal Range -2,147,483,648 to 2,147,483,647
                                Binary Range -2^31 to 2^31-1
                                Check your help file under Data Handling. There is a complete chart there.

                                The size of the number depends on the number of bytes used for storing.
                                4 bytes for a signed Long integer results in a number from -2,147,483,648 to 2,147,483,647, as shown above.

                                To store a 12 digit integer use the QUAD integer.

                                Rod
                                Last edited by Rodney Hicks; 20 Jul 2008, 04:58 AM. Reason: added info
                                Rod
                                I want not 'not', not Knot, not Knott, not Nott, not knot, not naught, not nought, but aught.

                                Comment


                                • #17
                                  Can,

                                  SINGLE is the least precise floating-point type. DOUBLE or EXTENDED floating-point types would have been okay for the numbers you gave.

                                  But, if you are working with integers, it is much better if you use an integer type. Unsigned types are byte (8 bits), word (16 bits), and dword (32 bits). Signed (plus or minus) types are integer (15 bits and sign bit), long (31 bits and sign bit), and quad (63 bits and sign bit).

                                  On 32 bit computers it is almost always best to use long or dword. Byte, word, and integer make for slower running code.

                                  Once you select the correct type for job, and understand the differences between the type, you will have no problems with PB.

                                  Cheers,
                                  Dale

                                  Comment


                                  • #18
                                    Originally posted by Can Le View Post
                                    MY problem is:
                                    My calculation will yield an integer number Num from 4 to 12 digits,
                                    My question:
                                    How to define Data Type for Num to be used from both 4 digits to a 12 digits long ?

                                    Will PB Windows version has problem with under flow and over flow too ? If yes, I may say good bye to PB Windows and go back to PB DOS as Data Type for Perl, I think Perl is having the best Data Type!
                                    No need to go back to DOS. What you need here is the QUAD data type and you'll get no overflow or underflow. Example:
                                    Code:
                                    #COMPILE EXE
                                    #DIM ALL
                                    
                                    FUNCTION PBMAIN () AS LONG
                                    
                                        LOCAL CanLeData AS QUAD
                                        
                                        CanLeData = 1234
                                        PRINT CanLeData
                                        CanLeData = 123456789012
                                        PRINT CanLeData
                                        WAITKEY$
                                    
                                    END FUNCTION

                                    Comment


                                    • #19
                                      Thank you all for your helps!

                                      I used QUAD and EXT and both worked for my ranges on integer and float, however, I encountered problem when formula yields 13 digits which gave me zero on value! I came back this thread and and used DOUBLE, it worls for me with 1.234567891131517.25 for 1.234567891131517 E17 !

                                      Thank you
                                      http://www.lecan.net

                                      Comment

                                      Working...
                                      X