Skip to main content
Logo image

Section 6.6 Summary

Here is what we covered in this chapter:
  • Digital representation of floats using mantissa and exponent
  • Converting (casting) between data types
    • Example:
      • int a = 3;
        int b = 4;
        float ave;
        ave = ((float) a)/((float) b);
        
  • Modulo operation to find the remainder in integer division
    • Example:
      • 8%5 = 3