Fixed Point Maths

version 5 by Michael Callaghan

  • Home page
  • Beginning
  • Previous
  • Next



  • Chapter 4 - Comparisons

    Section 1 - Equals

    To decide if (A - a real number) real equals (B - a real number):
        let temp1 be the aggregate of A;
        let temp2 be the aggregate of B;
        if temp1 is temp2:
            decide yes;
        decide no.

    To decide if (A - number) real equals (B - real number):
        let temp be A as a fixed point number;
        if temp real equals B:
            decide yes;
        decide no.

    To decide if (A - a real number) real equals (B - number):
        let temp be B as a fixed point number;
        if A real equals temp:
            decide yes;
        decide no.