If you explicitly cast double to int, the decimal part will be truncated. For example: int x = (int) 4.97542; //gives 4 only ...
-
April 3, 2022
- 0 Comments