Next: ANY, Previous: AND, Up: Intrinsic Procedures
ANINT — Nearest whole numberANINT(X [, KIND]) rounds its argument to the nearest whole number.
     RESULT = ANINT(X [, KIND])
     | X | The type of the argument shall be REAL(*). | 
| KIND | (Optional) An INTEGER(*)initialization
                      expression indicating the kind parameter of
		      the result. | 
ANINT(X) returns AINT(X+0.5).  If X is
less than or equal to zero, then it returns AINT(X-0.5).
               program test_anint
            real(4) x4
            real(8) x8
            x4 = 1.234E0_4
            x8 = 4.321_8
            print *, anint(x4), dnint(x8)
            x8 = anint(x4,8)
          end program test_anint
     
     | Name | Argument | Return type | Standard | 
| DNINT(X) | REAL(8) X | REAL(8) | F77 and later |