Fixed Point Maths

version 5 by Michael Callaghan

  • Home page
  • Beginning
  • Previous
  • Next



  • Section 2 - Greater than

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

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

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