handling Large Numbers


Results 1 to 13 of 13

Threaded View

  1. #6
    Join Date
    Feb 2005
    Posts
    67


    Did you find this post helpful? Yes | No

    Thumbs up

    Hi Daryl,
    Must have been your telepathy, as I did precicly that, ie

    div32 first THEN subtract

    ADCIN 7,y

    Pause 100 ' adc settling

    x1 = y

    y = y*385

    y = div32 1000

    y = y - 5088

    y1=y1+y ' Loop to average results

    If x = 9 then goto outtwo

    x=x+1

    Pause 100

    Goto Ambient

    Outtwo: Debug "A raw= ",#x1,$0D,$0A

    y=y1/1000

    Y1= y1//1000

    Y1 = Y1/100

    Debug "A calc= ",#y,".",#y1,$0D,$0A

    x=0
    y=0
    y1=0

    now results are JUST Fine !!!!
    thanks Steve and Daryll

    kindregards

    pete

    sorry Steve is meant to say Skimask
    Last edited by Peter1960; - 24th April 2007 at 05:27. Reason: name change
    Pete

Similar Threads

  1. Replies: 4
    Last Post: - 15th April 2009, 01:54
  2. store/display very large numbers (700000)
    By ttease in forum mel PIC BASIC Pro
    Replies: 1
    Last Post: - 18th March 2007, 22:08
  3. Multiplying large numbers
    By jhonea1 in forum mel PIC BASIC Pro
    Replies: 6
    Last Post: - 14th April 2006, 17:41
  4. How to display large numbers
    By Peter1960 in forum mel PIC BASIC Pro
    Replies: 3
    Last Post: - 26th March 2006, 23:17
  5. math problems - large numbers
    By Tomasm in forum mel PIC BASIC Pro
    Replies: 0
    Last Post: - 16th February 2004, 07:48

Members who have read this thread : 0

You do not have permission to view the list of names.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts