home *** CD-ROM | disk | FTP | other *** search
- Here, the declaration of the object "a" converts the floating
- point value 2.5 into a Fraction object with the value 5/2. The
- conversion for "b" is a 2-step process. First, -3 is converted
- from an integer to a floating point, using a built-in conversion.
- Then the value -3.0 is converted to a Fraction object, -3/1, using
- the constructor. This constructor is not an inline function
- because the conversion function is fairly complicated.
-