Truncation
Limiting the number of digits right of the decimal point by discarding the least significant ones.
— Wikipedia
Usually you can see truncation when dividing two integers. For example, 5/2 is
2 and not 2.5.
printf("%d", 5/2); // 2Limiting the number of digits right of the decimal point by discarding the least significant ones.
— Wikipedia
Usually you can see truncation when dividing two integers. For example, 5/2 is
2 and not 2.5.
printf("%d", 5/2); // 2