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  Is it 5 and up round up?

Leave a Reply

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