askIT

Android Convert double to int

You can convert any double to int, but you need to keep in mind that integer doesn't store any decimals. Integer doesn't either round the number, it simply removes the decimal.

Double to int

double myDouble = 3;
int myInt = (int)myDouble

Add comment

avatar_blank_60.png

Comment:

Name:

Email:

Comments

No comments yet. You can be the first one to comment. Just write your comment in the form and click on the submit button.