02.07.2013 Views

HP Fortran Programmer's Reference

HP Fortran Programmer's Reference

HP Fortran Programmer's Reference

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

Intrinsic procedures<br />

Intrinsic procedure specifications<br />

NEAREST(X, S)<br />

Description<br />

Returns the nearest different machine representable number in a given direction.<br />

Class<br />

Elemental function.<br />

Arguments<br />

X must be of type real.<br />

S must be of type real and not equal to zero.<br />

Result type/<br />

type parameters<br />

Same as X.<br />

Result value<br />

The result has a value equal to the machine representable number distinct from X and nearest<br />

to it in the direction of the infinity with the same sign as S.<br />

NINT(A, KIND)<br />

Optional argument<br />

KIND<br />

Description<br />

Nearest integer.<br />

Class<br />

Elemental function.<br />

Arguments<br />

A must be of type real.<br />

KIND (optional) must be a scalar integer initialization expression.<br />

564<br />

Chapter 11

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!