- Main Page
- Classes
- Files

# Project 2 - FIxed-Point Numbers

This program is Project 2 in Exploring C++, by Ray Lischner (Apress).

Your task for Project 2 is to implement a simple fixed-point number class. The class represents fixed-point numbers using an integer type. The number of places after the decimal point is a fixed constant, four. For example, represent the number 3.1415 as the integer 31415 and 3.14 as 31400. You must overload the arithmetic, comparison, and I/O operators to maintain the fixed-point fiction.

Source files:

- fixed.hpp
- fixed.cpp
- test.cpp : test program
- test.hpp : test header (see Exploration 28)
- ioflags.hpp : save and restore I/O stream flags (Exploration 37)

Author:
  Ray Lischner