java get int from double without rounding

Java
int value = (int) 6.14; // 6 
int score = (int) 6.99; // 6
Source

Also in Java: