No announcement yet.


  • Filter
  • Time
  • Show
Clear All
new posts

  • Robert E. Carneal
    Originally posted by David J Walker:
    Are all your variables declared as integer?
    ummm, no. Would

    Integer K



    Leave a comment:

  • David J Walker
    Are all your variables declared as integer?
    Floating point arithmetic will get you every time!


    Leave a comment:

  • Mel Bishop
    Okay, I can see where you are coming from now. You are taking
    a date and compressing it, presumibly to save disk space. Have
    you considered the following example:

    20020925 <==> Sep 25, 2002

    Chop it up into:

    20 02 09 25

    and then convert the digits to CHR$()

    te$ = chr$(20) + chr$(02) + chr$(09) + chr$(25)

    Here you will have chopped the date string in half,
    (4-bytes vs. 5 vs. 8)

    Just a thought.


    [This message has been edited by Mel Bishop (edited April 02, 2002).]

    Leave a comment:

    Where is the value for K coming from ? The result of what ?

    What is the ultimate purpose of the stored converted dates ?

    [This message has been edited by OTTO WIPFEL (edited April 02, 2002).]

    Leave a comment:

  • Robert E. Carneal
    I can post it, but, it is confusing as I have no comments on
    it yet.

    I just did a debug and the value is showing in exponent format,
    which is +not+ what I planned. The values should be no higher
    than eight digits.

    What I have done is written two programs. The first one takes
    the date in format YYYYMMDD and converts it to a base 62 number
    system. Base 62 is 0-9 A-Z a-z, giving me 62 digts. I always
    get a 5 digit representation.

    The date of Mar 31st, 2002, for example is 20020331, and
    converts to 1M0Cb.
    The date of Sep 25th, 2002, for example is 20020925, and
    converts to 1M0M9.

    As far as I can tell, this one works fine according to my
    calculator and math by hand.

    The 2nd program takes the code and supposedly gives me back
    the original date number.

    My intention for this is to convert number from one base to

    Ok, with all that in mind, I did a debug of the 2nd program,
    the numbers are in exponential format, not fixed eight digit.
    Is that a clue?

    I will post the program if you still want me to, but it does
    look weird.




    Leave a comment:

  • Mel Bishop
    The numbers added up fine on my compiler. There must be something,
    somewhere else in the program. How about posting everything between
    the IF/END IF and let's have a better look.


    Oops! I can see you already did that but we are going to have to
    have a little more to work with.

    [This message has been edited by Mel Bishop (edited April 02, 2002).]

    Leave a comment:

  • Robert E. Carneal
    started a topic mis-sum?


    I have five numbers (shown below) that were determined elsewhere
    in the program.

    When these are added, it seems to be off by one. Is there any
    I can do to make the addtion more accurate?


    The sum is 20020925, but it returns 20020924 for some reason.

    I am using the statement:
    If K > yeer, then
    TotVal = TotVal + K
    End if

    Print "I believe the number you are looking for is: ########";TotVal

    What can I do to make the values more accurate? Thank you.