home *** CD-ROM | disk | FTP | other *** search
/ Microsoftware Monthly 19…2 Programming Power Tools / MASO9512.ISO / cpptutor / cpptutor.arj / CH12 / A12103.WAV (.mp3) < prev    next >
Waveform Audio File Format  |  1993-11-01  |  228.1 KB  |  1 channel  |  11,025 sample rate  |  21 seconds
Transcription: If a demotion is performed on a value that cannot be represented entirely in the target type, information is lost. This example shows how the demotion from float to int can cause loss of information. When the function print int is called with a float argument that cannot be represented as an integer, the fractional part of the argument is truncated.