kind - (Optional) An integer initialization expression indicating the kind parameter of the result.

Return value

Returns a with the fractional portion of its magnitude eliminated by rounding to the nearest whole number and with its sign preserved, converted to an integer of the default kind.

Example

program test_nintreal(4)x4real(8)x8x4=1.234E0_4x8=4.321_8print*,nint(x4),idnint(x8)endprogram test_nint