What happens if you cast double to int?

As we know double value can contain decimal digits (digits after decimal point), so when we convert double value with decimal digits to int value, the decimal digits are truncated .

Sizin İçin Seçtik  How do you round in darts?

Leave a Reply

Your email address will not be published. Required fields are marked *