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