31.3k views
5 votes
When a conversion functions is used to convert a real number to an integer, what usually happens to the real number's fractional part?

User Cygri
by
8.0k points

1 Answer

2 votes

Final answer:

When a conversion function is used to convert a real number to an integer, the fractional part is usually dropped or truncated.

Step-by-step explanation:

When a conversion function is used to convert a real number to an integer, the fractional part of the real number is usually dropped or truncated. This means that the fractional part is simply removed, and only the whole number part remains.For example, if we convert the real number 3.75 to an integer, the fractional part 0.75 is dropped, and we are left with the integer 3.Similarly, if we convert the real number -2.9 to an integer, the fractional part -0.9 is dropped, and we are left with the integer -2.

User Lalit Fauzdar
by
7.5k points