convert double to decimal java code example Example: convert double to int java double data = 3452.345 int value = (int)data;