home *** CD-ROM | disk | FTP | other *** search
/ Microsoftware Monthly 19…2 Programming Power Tools / MASO9512.ISO / cpptutor / cpptutor.arj / CH12 / A12103.TXT < prev    next >
Encoding:
Text File  |  1993-09-13  |  362 b   |  7 lines

  1. If a demotion is performed on a value that cannot be represented
  2. entirely in the target type, information is lost.  This example
  3. shows how the demotion from float to int can cause loss of
  4. information.  When the function print_int() is called with a
  5. float argument that cannot be represented as an integer, the
  6. fractional part of the argument is truncated.
  7.