You are right, the integer has to be in the numerator, but my question is still the same.
This is a minimal example:
program conversion
implicit none
integer, parameter :: rk = selected_real_kind(15,307)
integer :: a = 10, b = 5
real(rk) :: c
!integer division but integer output ->...