Fixed Point Maths

version 5 by Michael Callaghan

  • Home page
  • Beginning
  • Previous
  • Next



  • Section 7 - Change the sign of a fixed point number

    To decide which real number is the reverse/negation of (N - a real number):
        let temp1 be 0 minus the whole part of N;
        let temp2 be 0 minus the fractional part of N;
        let result be the real number with whole part temp1 fractional part temp2;
        decide on result.