Transcription: The functions real and trunk convert the value of a fraction object to a number of type double or integer. These functions are declared to be friends so that they can be used much like the built-in type conversions in function notation. The function names real and trunk are used rather than the standard conversions float and int to avoid any ambiguities in arithmetic expressions. For example, if a is a fraction object, the expression a plus b cannot be interpreted as int plus int.