Announcement

Collapse
No announcement yet.

FIX question

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

  • FIX question

    Does the FIX function work correctly on not only simple integers
    such as the '%' variety, but also '&' and '&&' as well? I'm now
    being forced to deal with very huge linked list pointers into
    upwards of seventh generation 'children' and need to be able to
    focus all children of a particular parent to a starting pointer
    in that family which I can do with it if this is true.

    Thanks!


    ------------------
    Mike Luther
    [email protected]
    Mike Luther
    [email protected]

  • #2
    Um, pointers have no fractional part. Using FIX or INT against one of these numbers is a waste of time.


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

    Comment


    • #3
      Come to think of it, FIX or INT versus a %,& or && is equally silly, since neither INTEGER, LONG or QUAD have decimal parts.
      Michael Mattias
      Tal Systems (retired)
      Port Washington WI USA
      [email protected]
      http://www.talsystems.com

      Comment


      • #4
        Yes, Mike .. correct. But in this case what I was intending to
        do was to divide one by the other, or whatever, and use the FIX
        technique to munch the answer at the time of the divide. Such as
        in FIX(A&&/B&&) or like that. Until it got above a 'correct' next
        division operation, we would have a remaining part for the division
        which if I used the technique correctly would only produce a 'clean'
        result for each 10, 20, whatever steps I wanted. Doing this in a
        non-FIX way usually produces the next higher integer after you get
        to the mid point in the operation.




        ------------------
        Mike Luther
        [email protected]
        Mike Luther
        [email protected]

        Comment


        • #5
          Integer Division will handle that..

          FIX (A&/B&) = A&\B&


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

          Comment


          • #6
            Thanks Michael ..

            That's what I thought, but I wanted someone else's support before
            I went off chasing this one. 20 times 20 to the 7th power or more
            is a lot of room for error, chuckle.



            ------------------
            Mike Luther
            [email protected]
            Mike Luther
            [email protected]

            Comment

            Working...
            X