I am trying to take numbers in as an int, then put out the decimal value. for example, 1/2 = 1.2. here is my code:

Only problem is, i get 0. am i casting wrong?Code:`Scanner console = new Scanner(System.in);`

System.out.print("numerator: ");

int numerator = console.nextInt();

System.out.print("denominator: ");

int denominator = console.nextInt();

double fraction = (double) (numerator/denominator);