<Example Program>
Program nint_example Call test( [ 10.49,10.50,10.51 ] ) Contains Subroutine test(a) Real,Intent(In) :: a(:) Print 1,a,Nint(a) 1 Format(3F8.2,/,3I8) Print 1,-a,Nint(-a) End Subroutine End Program
Execution Results
10.49 10.50 10.51 10 11 11 -10.49 -10.50 -10.51 -10 -11 -11